The short answer: 1024 MB = 1 GB.
The reason is in the prefixes. Giga means billion, which in binary terms works out to 1,073,741,824 bytes, while Mega means million, or 1,048,576 bytes. That makes a gigabyte exactly 1,024 times larger than a megabyte — so there are 1,024 MB in a GB, and roughly 1/1024 of a GB in a single MB.
One caveat worth knowing: hard drive manufacturers often use decimal maths and advertise 1,000 MB per GB, which is why a drive's reported capacity in your operating system looks slightly smaller than the number on the box.