How to Convert Megabytes to Gigabytes
A clear guide to converting MB to GB, explaining both decimal and binary definitions, with worked examples and a practical reference chart.
Last updated: 2025-03-15
Introduction: A Simple Conversion with a Catch
Converting megabytes to gigabytes sounds simple — and it is, once you know which definition to use. The catch is that there are two competing definitions: the decimal (SI) system where 1 GB = 1,000 MB, and the binary system where 1 GiB = 1,024 MiB. Hard drive manufacturers, mobile carriers, and internet providers use the decimal system, while your computer's operating system typically uses binary. This discrepancy is why a “500 GB” hard drive shows only about 465 GB when you plug it in. This guide explains both systems clearly and shows you how to convert accurately.
The Two Definitions
Decimal (SI) System
- 1 kilobyte (KB) = 1,000 bytes
- 1 megabyte (MB) = 1,000 KB = 1,000,000 bytes
- 1 gigabyte (GB) = 1,000 MB = 1,000,000,000 bytes
- 1 terabyte (TB) = 1,000 GB = 1,000,000,000,000 bytes
Binary System
- 1 kibibyte (KiB) = 1,024 bytes
- 1 mebibyte (MiB) = 1,024 KiB = 1,048,576 bytes
- 1 gibibyte (GiB) = 1,024 MiB = 1,073,741,824 bytes
- 1 tebibyte (TiB) = 1,024 GiB = 1,099,511,627,776 bytes
Conversion Formulas
- MB to GB (decimal): GB = MB ÷ 1,000
- GB to MB (decimal): MB = GB × 1,000
- MiB to GiB (binary): GiB = MiB ÷ 1,024
- GiB to MiB (binary): MiB = GiB × 1,024
Worked Examples
Example 1: Converting 4,500 MB to GB (decimal)
4,500 ÷ 1,000 = 4.5 GB. This is how a mobile carrier would calculate your data usage.
Example 2: Converting 4,500 MiB to GiB (binary)
4,500 ÷ 1,024 = 4.395 GiB. This is how your operating system would report the same amount of data.
Example 3: Why a “256 GB” phone shows ~238 GB
The phone has 256,000,000,000 bytes (decimal). The OS displays this as 256,000,000,000 ÷ 1,073,741,824 = 238.42 GiB. The “missing” space is not lost — it is the difference between the decimal and binary counting systems.
Quick Reference Table
| MB (decimal) | GB (decimal) | GiB (binary) | Example File |
|---|---|---|---|
| 5 | 0.005 | 0.00466 | High-res photo |
| 50 | 0.05 | 0.0466 | Short video clip |
| 700 | 0.7 | 0.652 | CD-ROM capacity |
| 1,000 | 1.0 | 0.931 | Short HD movie |
| 4,700 | 4.7 | 4.377 | DVD capacity |
| 25,000 | 25.0 | 23.28 | Blu-ray disc |
| 500,000 | 500.0 | 465.66 | 500 GB hard drive |
Real-World Applications
- Mobile data plans: Carriers advertise in GB (decimal). Knowing that 1 GB = 1,000 MB helps you estimate how many photos or videos you can upload.
- Storage shopping: When buying drives, expect the OS to show roughly 7% less than the advertised capacity due to decimal vs binary differences.
- Cloud storage: Services like Google Drive and Dropbox typically use the binary system for displayed storage.
- File transfers: Download speeds in MB/s and file sizes in GB require this conversion to estimate transfer times.
Use our data storage converter for instant conversions between bytes, kilobytes, megabytes, gigabytes, and more.
Frequently Asked Questions
How many megabytes are in a gigabyte?
In the decimal system (used by manufacturers), 1 GB = 1,000 MB. In the binary system (used by operating systems), 1 GiB = 1,024 MiB.
Why does my hard drive show less space than advertised?
Storage manufacturers use the decimal definition (1 GB = 1,000,000,000 bytes), while your operating system uses the binary definition (1 GiB = 1,073,741,824 bytes). The difference is about 7.37% at the gigabyte level.
What is the difference between MB and MiB?
MB (megabyte) in the decimal system equals exactly 1,000,000 bytes. MiB (mebibyte) in the binary system equals 1,048,576 bytes (220). The difference is about 4.86%.