The Number You Need
There are 1024 megabytes in a gigabyte. That's the standard conversion used by operating systems, most file managers, and essentially everything built on the binary system. The calculation is just multiplication or division by 1024. Divide your total megabyte count by 1024 and you get gigabytes. Multiply gigabytes by 1024 and you get megabytes. But it's not always that clean, and that's where most people run into problems.
How Many Megabytes To A Gigabyte
Let me explain why a 1 TB hard drive doesn't give you 1000 GB of usable space, or even 1024 GB. Drive manufacturers use the decimal system. One terabyte to them is 1000 gigabytes, each gigabyte is 1000 megabytes, and so on. Windows uses the binary system. When you plug that drive in, it calculates 1000 divided by 1.024 three times over, landing you at roughly 931 GB. You lost about 7% of your advertised capacity, and it's not a bug, it's a math mismatch. I ran into this a few years back when I was helping someone migrate a large dataset between servers. They had a script that checked available space by reading the drive's total bytes, dividing by 1024 three times to get what the script called "gigabytes," and then comparing it against a target file size that had been calculated using 1000-based math. The script kept failing at exactly 500 GB, claiming there wasn't enough space when the drive showed 600+ GB free. The workaround was straightforward once I identified it: I rewrote the script to use 1000-based divisions for the target file size and kept 1024-based divisions for the actual disk capacity check. The mismatch was invisible until you were mid-transfer and the job errored out. Another thing worth knowing is that network speeds are almost always advertised in decimal megabits per second, not binary megabytes per second. If your ISP promises 100 Mbps, that's 100 million bits per second, which translates to about 12.5 megabytes per second using the binary system your browser actually uses. So a 5 GB file won't download in 400 seconds. It'll take closer to 11 hours on a good day with overhead.
Then there's the issue of RAM. Memory is measured in binary because it's organized in powers of two. A 16 GB stick of RAM actually holds 17,179,869,184 bytes. Your operating system will report it as 16 GB, which is accurate in binary terms. But if you look at the manufacturer's label, it says 16 GB using decimal notation, which would actually be 16,000,000,000 bytes. The difference is about 79 megabytes. It doesn't matter much for a single stick, but it adds up when you're stacking multiple modules or troubleshooting memory allocation issues. If you need a quick reference for common conversions, here's what you actually encounter in practice: 500 MB is about 0.49 GB. 2 GB is 2048 MB. 4 GB of RAM is 4096 MB. 8 GB is 8192 MB. 16 GB is 16384 MB. For anything larger, 1 TB equals 1024 GB or 1,048,576 MB. 1 PB equals 1024 TB or 1,048,576 GB.
Get the Full Details

One more thing that trips people up: many cloud storage providers and media platforms use decimal gigabytes. When YouTube says a video is 2 GB, it's 2 billion bytes, not 2 gibibytes. If you're downloading that video and checking your remaining space on a Windows drive that reports in binary, you might think you've got more room than you actually do. Subtract about 7% from the advertised file size and you'll know what you're really working with. The easiest fix is to use a calculator or a simple online converter when you're doing precise work, especially if you're moving large files between systems that use different counting methods. A tool like the one at gigenet.com does the conversion automatically and handles both binary and decimal outputs, so you can see the difference before you commit to anything. For most everyday purposes, rounding 1024 down to 1000 won't cause real problems. You won't notice a 2% difference when you're looking at a 50 MB file. But when you're dealing with multi-gigabyte operations, database migrations, or any kind of automated transfer, that small discrepancy compounds quickly and can cause errors that are frustrating to debug.
Here's the bottom line: 1024 megabytes equals 1 gigabyte in the systems that actually matter for computing. If you're ever unsure which standard something is using, check the documentation or just do the math both ways and see which one matches what you're actually seeing on screen.