Label in TB, system in TiB

A box says 4 TB. The disk utility says 3.64 TiB. Both are right. The label uses the decimal terabyte of one trillion bytes, and the tool divides by 2 to the 40th power, 1,099,511,627,776 bytes, which is one tebibyte. This converter takes a size in decimal megabytes and returns TiB, so a figure from a data sheet or an inventory can be read in the same unit as the tool. The default of 10 MB returns about 0.00000909 TiB. Real use involves millions of megabytes, such as 4,000,000 MB, which equals about 3.638 TiB.

The conversion factor

A megabyte holds 1,000,000 bytes. A tebibyte holds 1,099,511,627,776 bytes. Dividing gives 9.09494701773e-7, so each MB is a bit less than one millionth of a TiB. Examples follow directly: 1,000,000 MB is 0.909495 TiB, 2,000,000 MB is 1.818989 TiB, 8,000,000 MB is 7.27596 TiB and 16,000,000 MB is 14.5519 TiB. In the other direction, one TiB is 1,099,511.627776 MB. The tebibyte is defined by the IEC prefix tebi, written Ti, and NIST SP 811 lists it among the binary prefixes. A quick estimate for a hand check is to multiply the megabyte count by 0.91 and divide by one million. The page then supplies the full precision. For a spreadsheet, put 9.09494701773E-7 in a named cell and multiply by it, which keeps the whole column consistent and lets anyone who audits the sheet see the factor in one place.

Reading a disk utility

Drive tools on Linux, macOS versions that still show binary units in some views, and many NAS systems report TiB. A 4 TB drive, at 4,000,000 MB, appears as about 3.64 TiB, and an 8 TB drive appears as 7.28 TiB. A 16 TB drive shows 14.55 TiB. These are not defects. The shortfall is the gap between the two definitions of the prefix, about 9.05 percent at the tera level. Formatting then takes a small additional share for file system structures.

Storage arrays and RAID math

Administrators size arrays from drive counts. Four 8 TB drives in a RAID 5 layout provide the capacity of three drives for data, which is 24 TB, or 24,000,000 MB. In binary terms that is about 21.83 TiB. A pool tool will show close to that before overhead, and the converted figure explains why the number on the screen is lower than the sum of the labels. Running each step in this page keeps the decimal and binary views side by side during planning. Hot spares, parity and file system reserves reduce the usable space further, so the converted raw figure is an upper bound for what the pool will report. Treat it as the starting point and subtract the overhead that your array software documents.

Server and virtual machine inventory

Virtualization consoles and cloud dashboards show datastore sizes in TiB. If a purchase order lists 2,000,000 MB of raw storage and the console reports 1.82 TiB, the numbers match. Converting before the install tells you how many virtual disks of a given size fit. A set of ten virtual disks of 150,000 MB each totals 1,500,000 MB, which is about 1.364 TiB, and fits in a datastore reported as 1.8 TiB with room left for snapshots. Snapshots and thin provisioning change the picture over time, so the figure to watch is the free space the console reports, converted back to megabytes if your capacity plan uses them. A datastore with 0.45 TiB free holds about 494,780 MB of new data before it runs out, a number you can set against the size of the next project.

Planning headroom in binary units

Many alerts are set in percentages of the usable space the system reports. If you plan to stay under 80 percent of a pool that shows 7.27 TiB, the budget is about 5.82 TiB, or 6,400,000 MB decimal. Convert the budget to megabytes if your data inventory uses them, and compare. Doing the comparison in one unit avoids false alarms that come from comparing a decimal total against a binary threshold. A monitoring rule that fires at 80 percent of 7.27 TiB will trigger at about 5.82 TiB. If a report lists current use as 5,900,000 MB, the converted value is 5.366 TiB, which is still below the alert and gives roughly 0.45 TiB of room before it fires. Written in one unit, the margin is obvious.

How big the decimal and binary gap is

At each step up the prefix ladder the binary unit pulls further ahead: 2.4 percent at kilo, 4.9 at mega, 7.4 at giga, 10 at tera. At the tera scale, a drive label is about 9.05 percent higher than the binary figure, meaning the binary number is 90.95 percent of the label. For a single drive the difference is a few hundred gigabytes, and for a rack of drives it is large enough to influence a purchase. Twenty 16 TB drives list 320 TB, which is 291.04 TiB in a tool that counts in binary units, so an application that needs 300 TiB of usable space would not fit even before redundancy. Knowing the conversion before the quote saves a revised order. The same holds for tape and object storage that bill in one family while their consoles show another.

Writing sizes in documents

Pick one family and say so. "Raw capacity 16,000,000 MB (14.55 TiB)" shows both. Spell TiB with the lowercase i, as the standard does, to avoid confusion with TB. Where a field in a form or a script expects a particular unit, check its documentation. A value typed as 14.55 into a TB field would understate the capacity by about 9 percent in decimal terms. Procurement sheets benefit from a short footnote that gives the factor, 0.909495 TiB per 1,000,000 MB, so a reviewer can reproduce any line by hand. A line for 2,500,000 MB then reads 2.27 TiB, and a reviewer can check it with one multiplication.

RAID overhead and file system reserves

The page converts a nominal size between decimal megabytes and binary tebibytes. It does not model RAID overhead, file system reserves, snapshots or compression, and it does not recommend a drive or an array. The factor is stored with finite precision, which is far finer than any real capacity figure.