Understanding Megabytes and Gigabytes
A megabyte (MB) is a unit of digital information equal to one million bytes in the decimal system, or 1,048,576 bytes in the binary system. The distinction matters because computers operate using binary logic, where powers of 2 are more natural than powers of 10.
A gigabyte (GB) scales up from a megabyte by the same factor used in its calculation. In decimal terms, 1 GB equals 1,000 MB. In binary terms, 1 GB equals 1,024 MB. This seemingly small difference compounds significantly with larger data volumes—a 500 GB external drive formatted using binary units actually holds less usable space than the decimal equivalent suggests.
The confusion arises because the International System of Units (SI) defines mega and giga using base-10 prefixes, while the computer industry traditionally used base-2. Modern standards now use mebibyte (MiB) and gibibyte (GiB) for binary units to avoid ambiguity, but legacy systems and consumer devices still often use MB and GB interchangeably.
Conversion Formula
Converting between megabytes and gigabytes requires multiplying or dividing by the conversion factor specific to your numeral system. The choice between base-2 and base-10 determines whether you use 1024 or 1000 as your multiplier.
MB = Conversion Factor × GB
GB = MB ÷ Conversion Factor
MB— Data size in megabytesGB— Data size in gigabytesConversion Factor— 1024 for binary (base-2) systems or 1000 for decimal (base-10) systems
Base-2 vs Base-10 Systems
Base-10 (Decimal) System: Follows SI standards where each unit jumps by a factor of 1000. This system is used in marketing storage devices and in scientific contexts. One gigabyte equals exactly 1,000 megabytes. For example, a 2 GB file in base-10 measures 2,000 MB.
Base-2 (Binary) System: Uses powers of 2, which align with how computer memory and processors actually work. In this system, 1 GB = 1,024 MB. A 2 GB file in binary measures 2,048 MB. Operating systems like Windows and macOS traditionally report file sizes using binary calculations, which is why a hard drive advertised as 1 TB often shows less capacity when formatted.
When downloading files or monitoring storage quotas, recognising which system your platform uses prevents unexpected discrepancies. Cloud storage providers often advertise in decimal units, while your computer's file manager may display sizes in binary units.
Byte Breakdown: How Many Bytes?
Understanding the byte counts underlying these conversions clarifies why the systems differ so fundamentally.
- Base-10: 1 MB = 1,000,000 bytes (106); 1 GB = 1,000,000,000 bytes (109)
- Base-2: 1 MB = 1,048,576 bytes (220); 1 GB = 1,073,741,824 bytes (230)
The binary byte counts are slightly higher because 220 and 230 produce larger values than 106 and 109 respectively. This explains why a gigabyte of actual storage is larger under base-2 than base-10—the same nominal size encompasses more raw bytes.
Common Pitfalls When Converting Storage Units
Storage conversions trip up even experienced users due to marketing practices and system inconsistencies.
- Manufacturer vs. operating system discrepancy — Storage manufacturers advertise capacity using base-10 (1 TB = 1 trillion bytes), but your computer's file manager calculates space using base-2 (1 TB = 1.099 trillion bytes). A 1 TB external drive therefore appears as approximately 931 GB in Windows or macOS, not 1000 GB. Always account for this 7-9% difference when planning storage migration or backup strategies.
- Confusing decimal abbreviations — Files downloaded from the internet may show sizes as GB, but without knowing whether the source used base-10 or base-2, the actual byte count is ambiguous. Cloud services typically use decimal (base-10) to display more impressive numbers, while technical documentation and storage device firmware often use binary (base-2). When precision matters—such as scheduling backups or allocating server resources—verify the system's documentation.
- Cascading rounding errors — Converting between multiple units magnifies inaccuracy. Instead of converting MB to KB to bytes across platforms, perform conversions directly using the appropriate base. A 1500 MB file is exactly 1.5 GB in base-10 or 1.43 GiB in base-2. Intermediate conversions introduce rounding that compounds over large datasets, especially in data centre environments handling petabytes.
- Forgetting compression and metadata — The stated file size or storage quota rarely reflects actual hard drive or network throughput due to file system overhead, allocation tables, and compression. A 10 GB video file may compress to 2-3 GB depending on codec and quality loss tolerance. Budget conservatively when sizing storage by assuming 10-15% overhead for file system metadata.