When you're trying to figure out how much space you have left on your phone or why your downloaded file takes up more room than expected, you run into a confusing reality: digital units don't always use standard math. There are exactly 1,000 megabytes in a gigabyte under the decimal system used by manufacturers, but operating systems often calculate 1,024 megabytes in a gigabyte using binary logic.
This difference between decimal and binary measurements leads to mismatched storage readings across devices and confusion when managing files. Let's break down the exact math behind megabytes and gigabytes, why operating systems lie to you, and how storage standards actually work in the real world.
Decimal vs Binary: Why Storage Math is Confusing
To understand data storage, you have to look at how numbers work in computing. We use two different measurement standards, and mixing them up causes most of the confusion around file sizes and drive capacities.
The Decimal System (Base 10)
Hardware manufacturers, camera companies, and internet service providers use the decimal system, which is based on powers of 10. In this standard:
- 1 Kilobyte (KB) = 1,000 bytes
- 1 Megabyte (MB) = 1,000 kilobytes (or 1,000,000 bytes)
- 1 Gigabyte (GB) = 1,000 megabytes (or 1,000,000,000 bytes)
- 1 Terabyte (TB) = 1,000 gigabytes
When you buy a 1TB hard drive, the manufacturer builds it to hold 1,000,000,000,000 bytes using base-10 math.
The Binary System (Base 2)
Computers process data using binary code, which relies on powers of 2. Because 2 to the 10th power is 1,024, computer scientists traditionally adopted 1,024 as the multiplier for digital units instead of 1,000. In this standard:
- 1 Kibibyte (KiB) = 1,024 bytes
- 1 Mebibyte (MiB) = 1,024 kibibytes
- 1 Gibibyte (GiB) = 1,024 mebibytes (or 1,073,741,824 bytes)
Your operating system (like Windows or macOS) uses these binary calculations to read file sizes and drive capacity. But instead of using the correct terms (Mebibytes and Gibibytes), Windows labels them as Megabytes and Gigabytes. That's why a brand-new 500GB hard drive shows up as roughly 465GB inside Windows. You aren't getting cheated; you're just seeing the same storage amount calculated through two different math systems.
Decoding Real-World File Sizes
Knowing how many megabytes fit into a gigabyte helps you estimate how much media your devices can hold. Since standard consumer storage uses base-10 numbering for marketing, let's look at what common files actually consume in megabytes and gigabytes.
Photos and Images
An average smartphone photo taken with a 12-megapixel camera ranges from 3 MB to 5 MB in file size.
- If you have 1 GB of storage space available, you can store roughly 200 to 300 standard photos.
- Raw images taken on professional mirrorless cameras can easily hit 30 MB to 50 MB each, meaning 1 GB will only hold about 20 to 30 shots.
Audio and Music
A standard three-minute song encoded as a high-quality 320 kbps MP3 file takes up about 7 MB to 8 MB.
- 1 GB of storage holds roughly 130 to 140 songs.
- Uncompressed audio formats like FLAC or WAV push file sizes to 30 MB or 40 MB per song, dropping your capacity to around 25 songs per gigabyte.
Video Streaming and Downloads
Video file sizes vary wildly based on resolution, bitrate, and compression codecs.
- Standard definition video consumes about 700 MB per hour.
- 1080p high-definition video uses roughly 1.5 GB to 3 GB per hour on platforms like YouTube.
- 4K ultra-high-definition video can burn through 7 GB to 10 GB of data per hour.
Common Storage Mistakes to Avoid
When buying devices or planning data usage, people often make a few predictable errors based on unit confusion.
- Assuming advertised capacity matches OS display: Expecting a 1 TB phone to show 1,000 GB in your settings. Operating system overhead and binary calculation mean you'll see closer to 931 GB.
- Confusing Megabits with Megabytes: Internet speeds are measured in Megabits per second (Mbps), while file sizes are measured in Megabytes per second (MBps). Since there are 8 bits in a single byte, a 100 Mbps internet connection downloads data at a maximum speed of about 12.5 MBps. You can verify network standards through the Federal Communications Commission.
- Ignoring background bloat: Forgetting that operating systems, pre-installed apps, and system caches take up a massive chunk of your base storage before you even download a single file.
Frequently Asked Questions
Why does my new hard drive show less space than advertised?
Manufacturers measure storage using decimal units where 1 GB equals 1,000,000,000 bytes. Your computer reads storage using binary units where 1 GB equals 1,073,741,824 bytes. This math difference makes a 500 GB drive appear as roughly 465 GB in your file explorer.
How many megabytes are in a gigabyte?
In standard decimal usage, there are 1,000 megabytes in 1 gigabyte. In binary computing terms, 1 gibibyte equals 1,024 mebibytes.
What is the difference between MB and Mb?
Capitalization matters in data units. MB stands for Megabytes, which measures file size and storage capacity. Mb stands for Megabits, which measures network transfer and internet speeds. One byte equals eight bits.
How many gigabytes do I need for a smartphone?
For a standard user who streams music and stores photos in the cloud, 128 GB is the baseline minimum. If you record lots of 4K video, play massive mobile games, or travel without internet access, step up to 256 GB or 512 GB.