A decimal unit read on a binary scale

A gigabyte on a product label and a mebibyte in a system monitor belong to two different counting schemes. The gigabyte is the SI unit, 1,000,000,000 bytes. The mebibyte is the IEC binary unit, 1,048,576 bytes, which is 1,024 times 1,024. Someone who downloads a 4 GB installer and sees the download manager report about 3,815 MiB has not lost any data. The same bytes were counted against a larger unit. This page performs that translation for any decimal-gigabyte figure. It is most useful for people who size virtual machines, memory limits and container quotas, where tools such as Linux utilities and cloud consoles state values in MiB while data sheets state GB.

The factor in full

The page applies MiB = GB × 1,000,000,000 / 1,048,576, which is the same as multiplying by 953.67431640625. That decimal terminates because 1,048,576 is 2 to the power 20, and dividing by a power of two always gives a finite decimal. The page lists the factor to twelve significant digits as 953.674316406, and the engine keeps the longer value internally. The definitions come from NIST SP 811 and IEC 80000-13, which fix mebi as 2 to the power 20. Because the conversion mixes a power of ten with a power of two, no simple digit shift gives the answer, and a calculator is the sensible tool.

Sanity check for 10 GB in MiB

The default input of 10 GB returns 9,536.7431640625 MiB. A rough check is 10 times 953.67, which gives 9,536.7. A few other values give a feel for the scale. One GB is 953.674 MiB, a half-gigabyte file is 476.837 MiB, 2 GB is 1,907.349 MiB, and 64 GB is 61,035.156 MiB. The result is always smaller than the input times 1,000, by a factor of about 4.6 percent. That gap is the ratio between 1,048,576 and 1,000,000, and it is the same at every size, so a result near 95.4 percent of the naive MB figure is the signature of this pair.

Memory and container sizing

Cloud and container platforms are a common reason to land on this page. A limit in Kubernetes is written in mebibytes, written Mi, while a database vendor may state a recommended footprint as 2 GB. Converting 2 GB gives 1,907.349 MiB, so a limit of 1,900 Mi would be a little tight and 2,048 Mi, which is exactly 2 GiB, gives breathing room. The page treats the input as decimal, so it answers the question what your 2 GB figure is in the platform units, not what two gibibytes would be. If the vendor really means a binary 2 GiB, use the GiB option as the source instead.

Mebibytes back to gigabytes

Choose mebibytes as the source and gigabytes as the target to go back. The page divides by the same factor, so 1,024 MiB returns 1.073741824 GB, and 1,000 MiB returns 1.048576 GB. Reverse conversions help when a system report lists usage in MiB and a billing page lists it in GB. Because GB is the larger and coarser unit here, the converted number is bigger than the MiB count divided by 1,000, by the same 4.9 percent gap. Keep the full precision while chaining, since rounding 1.048576 down to 1.05 before using it in another calculation introduces a visible error.

Precision, rounding and what to report

The result of GB to MiB has a long decimal tail, so rounding is a choice you make. A display that shows 9,536.74 MiB is accurate to one part in a million, which is plenty for capacity planning. Quoting 9,537 MiB is also fine for a rough comparison, while 9,500 MiB would hide almost 0.4 percent. The page shows up to twelve significant digits and does not round to a fixed number of decimals, so copy as many digits as your use needs. When the result will feed a configuration file, use whole mebibytes and round down if the value is a ceiling you must not exceed, or up if it is a minimum you must meet.

Mistakes specific to this pair

Three slips occur often. The first is relabeling: reading 9,536.74 MiB as MB, which is wrong because mebibytes and decimal megabytes are different units. The second is applying the 1,024 shortcut to the gigabyte side, so someone computes 10 × 1,024 and gets 10,240 MiB, which treats GB as if it were GiB. The third is mixing up mebi and mega in a spreadsheet by using the wrong factor for one column. If your source application says GB but counts in powers of 1,024, it is really showing gibibytes, and the correct converter is the GiB to MiB conversion, where the factor is exactly 1,024.

Worked sizes for installers, images and RAM

A 4 GB operating system image occupies 3,814.697 MiB, which is why a download manager that reports in binary units shows a figure near 3,815 for a file the publisher calls 4 GB. A 16 GB memory card is 15,258.789 MiB, and a 100 GB dataset is 95,367.432 MiB. A memory module sold as 16 GB of RAM is a different case. RAM is built in binary sizes, so a 16 GB module normally means 16 GiB, or 16,384 MiB. Use this page when the source is a decimal figure, such as a file size or a storage product, and use the GiB to MiB path when the vendor means binary memory.

Checking the result by hand

A quick estimate is to multiply the gigabyte value by 1,000 and then by 0.9537, or to divide by 1.048576. For 10 GB, 10,000 divided by 1.048576 gives 9,536.74, matching the page. Another route is to remember that 1 MiB is 1.048576 MB, so the MiB count is always smaller than the MB count by about 4.6 percent. If your hand estimate and the page disagree by more than a few units in the sixth digit, you probably chose the wrong source unit, for instance gibibytes instead of gigabytes, which would shift the result by about 7.4 percent. Spotting that kind of shift is easier when you keep both numbers on screen. A related slip is to enter a mebibyte count as the source and expect a gigabyte answer near the input divided by 1,000. The reverse conversion returns a slightly larger gigabyte figure, so 5,000 MiB is 5.24288 GB and not 5 GB.