The everyday step between GiB and MiB
Most software that shows memory or disk space switches between GiB and MiB depending on the size: a task manager lists a process in MiB, while the machine total appears in GiB. Both are binary units, so no decimal factor is involved and the step is simply a factor of 1,024. This page applies it for you and keeps the arithmetic visible for sizes that are not whole numbers. It suits system administrators sizing containers, developers setting heap limits, and anyone comparing a process listing with an instance size on a cloud provider price sheet.
Why 1,024 and where it comes from
The IEC binary prefixes in IEC 80000-13, also listed in NIST SP 811, define mebi as 2^20 and gibi as 2^30. Their ratio is 2^10, or 1,024. Memory chips are addressed with binary lines, so capacities come in powers of two and the neighboring units differ by 1,024 rather than 1,000. Earlier practice used MB and GB for these quantities, which is why many tools still print MB when they mean MiB. The page uses the IEC symbols so the unit you see is the unit that is computed.
The default of ten GiB
Ten GiB is 10,240 MiB. A single GiB is 1,024 MiB, and 0.75 GiB is 768 MiB. Multiples of a quarter or a half GiB give whole numbers: 0.25 GiB is 256 MiB and 3.5 GiB is 3,584 MiB. A value such as 12 GiB gives 12,288 MiB. These round results make this conversion one of the easiest to check in your head, even for odd sizes like 7.75 GiB, which is 7,936 MiB, since you can multiply the whole part by 1,024 and add a fraction of 1,024 for the remainder. For instance 2.25 GiB is 2,048 plus 256, which is 2,304 MiB.
Container and virtual machine limits
Orchestration tools commonly allow memory limits in MiB, so a pod that needs 6 GiB of headroom is entered as 6,144 MiB. Cloud instance names often list memory in GiB, for example 16 GiB, which becomes 16,384 MiB. When you divide that memory among services, working in MiB gives integer values that are easier to total. If the limit is entered in MB instead, the number shifts by 4.86 percent, so use a MiB field for MiB and an MB field for MB. A reminder to check the unit suffix of the field is worth the extra second.
Converting MiB back to GiB
The reverse direction divides by 1,024. A heap setting of 3,072 MiB is exactly 3 GiB, and 1,536 MiB is 1.5 GiB. A figure such as 5,000 MiB is 4.8828125 GiB, which terminates because dividing by a power of two always gives a finite decimal. Display rounding matters mostly for readability: 4.88 GiB is a reasonable shortening, though a script should compare MiB values directly rather than rounded GiB values. The converter accepts any pair of its units, so you can start with either one.
Rounding behavior
Since 1,024 is a power of two, a GiB value with a finite binary fraction converts without loss. Typical user entries such as 0.1 GiB give 102.4 MiB, which is a fractional mebibyte. Memory allocators work in whole pages, usually 4 KiB, so 102.4 MiB would be rounded to a multiple of that in practice. For a requested minimum, round up to the next whole MiB, giving 103 MiB here. For a maximum, round down to 102 MiB. The decision depends on what the number controls, and the page leaves that choice to you. Cloud billing is a related case: a provider that bills storage in GiB-months will round a 10,300 MiB volume up to the next unit, and 10,300 MiB is 10.0586 GiB, so it is charged as 11 GiB. Converting before you provision tells you how much of the last billed GiB you actually use, and whether trimming a few hundred MiB would drop the bill by a whole unit.
Confusions between MiB and MB
A mebibyte is 1,048,576 bytes and a megabyte is 1,000,000 bytes, so MiB is the larger unit by 4.86 percent. A reader who treats 10,240 MiB as 10,240 MB is understating the data by about 489 million bytes. Another confusion is the lowercase b: Mib means mebibits and is one eighth of a MiB. Documentation from some vendors prints MB while meaning MiB, and the only way to be certain is to read their definitions. Where the source says MiB, enter it as such, and the arithmetic on this page applies as shown. A numerical illustration helps: a 1 GiB limit holds 1,024 MiB, but a field that wants MB and is given 1,024 receives 1,024,000,000 bytes, which is 976.56 MiB and about 47 MiB short of a gibibyte. Over several services, that shortfall adds up.
Why 4,096 MiB of RAM is not all usable
The calculation changes units and nothing else. A virtual machine given 4,096 MiB of RAM does not have 4,096 MiB available to applications, because the kernel, firmware reservations and buffers take a share. Disk partitions lose a little space to metadata, and a swap file takes its own allocation. Use the figure as the size on paper, and measure what is available with the tools of the operating system. The factor follows IEC 80000-13 and NIST SP 811 and is the same for every platform.
Planning a memory split in mebibytes
Dividing a GiB budget is easier in MiB because the pieces stay whole. A 2 GiB instance is 2,048 MiB. If an application server, a cache and a monitoring agent need 1,280 MiB, 512 MiB and 128 MiB, the three total 1,920 MiB and leave 128 MiB for the operating system, which is thin. Raising the instance to 3 GiB gives 3,072 MiB and leaves 1,152 MiB free, a much safer margin. Java and similar runtimes accept heap flags in MiB or GiB, and the arithmetic here shows how a setting of 2g compares with one of 2,048m: they are the same size. The same logic applies to swap space and tmpfs mounts, which are usually set in MiB or GiB suffixes and are easy to mix up. Seeing both forms side by side stops the common mix-up where a developer enters 2,000 and believes it equals 2 GiB, which is 48 MiB less.