Tools that print 1,024-byte units

Linux reports memory in /proc/meminfo with the label kB, although the kernel documentation says the unit is 1,024 bytes, and df -k or du -k print blocks of 1,024 bytes. Anyone reading those numbers against a tebibyte capacity needs a conversion to the same unit. This page multiplies tebibytes by 1,073,741,824 and shows kibibytes. It is useful for administrators, students and developers who compare a raw tool output with a datasheet, a quota or a cloud console that quotes the volume size in tebibytes. Both units are binary, so the result is a defined integer multiple. For decimal kilobytes use the neighboring page that converts to kB.

Three steps of 1,024

Between the kibibyte and the tebibyte lie three steps of 1,024: mebibyte, gibibyte, tebibyte. So one tebibyte equals 1,024 × 1,024 × 1,024 kibibytes, which is 1,073,741,824, or 2^30. The formula is KiB = TiB × 1,073,741,824. Since the factor is a definition, it carries no uncertainty. A convenient check is the powers of two: 2^40 bytes divided by 2^10 bytes per kibibyte is 2^30, and a calculator that can show 2^30 will confirm the number. Unlike the decimal case, the digits do not simply shift, so use the page instead of estimating by eye.

Ten tebibytes in kibibytes

The default 10 TiB returns 10,737,418,240 KiB. That is a ten-digit number, and a single value of that size exceeds what a signed 32-bit integer can hold. Programs that keep a size in kibibytes in an int32 field would overflow at 2^31 KiB, which equals 2 TiB. A counter that works well for a 1 TiB disk and fails on a 3 TiB one is a classic symptom. If you maintain such code, test it with the 10 TiB value and compare the stored result against 10,737,418,240. The page makes that expected figure available without writing a script, and it also helps you decide whether to switch to a 64-bit type. Many languages offer a 64-bit integer, which holds sizes far beyond any realistic volume, so the switch costs little and removes the whole class of overflow bugs.

Counting 4 KiB blocks on a large volume

Many filesystems and operating systems allocate space in blocks of 4 KiB. A volume of 1 TiB, which is 1,073,741,824 KiB, therefore holds 268,435,456 such blocks, and 10 TiB holds 2,684,354,560. Those counts matter when you read an allocation table, estimate metadata size or check a tool that lists free blocks. Divide the kibibyte result from this page by 4 to obtain the block count. The conversion is exact because both numbers are powers of two. The page does not know the block size of any filesystem, so the division remains your step, and a different block size such as 64 KiB changes the result. With 64 KiB allocation units, for instance, 1 TiB holds 16,777,216 blocks. Larger blocks waste more space on small files but need fewer table entries.

Half a tebibyte and two tebibytes

Half a tebibyte is 536,870,912 KiB, which is 2^29. Two tebibytes are 2,147,483,648 KiB, which is 2^31. The latter equals one more than the largest signed 32-bit integer, 2,147,483,647, which is why 2 TiB shows up as a limit in software that stores kibibytes in a signed integer. These two values serve as anchors: if a tool reports exactly 2,147,483,647 KiB for a disk that is clearly larger, it has reached the representable maximum and stopped counting. When you see a figure that ends in 483,647 or 483,648, think about integer width before assuming the disk size itself is correct.

From a kibibyte total back to tebibytes

Set kibibytes as the source and tebibytes as the target to reverse the calculation. The page divides by 1,073,741,824. A total of 3,221,225,472 KiB is 3 TiB, and 536,870,912 KiB is 0.5 TiB. A df listing that shows 5,000,000,000 blocks of 1 KiB represents about 4.657 TiB. Because the source is binary, the result is slightly smaller than the decimal reading of the same digits would suggest. Report the result with a unit symbol and a sensible number of decimals, such as 4.66 TiB, and keep the original block count in your notes for anyone who wants to repeat the conversion. If the volume belongs to a team that tracks capacity monthly, store the raw block count and let the report convert it, so that every month uses the same method.

KiB beside kB in one table

Reports that list both units invite mistakes. A column header of kB over values that are really KiB understates the capacity by 2.4 percent, and the error grows when it is carried through three prefix steps, as with a tebibyte figure that is derived from a kilobyte number. The IEC symbol KiB, with its capital K and lowercase i, makes the binary meaning explicit. Whenever you copy a number from a tool into a document, add the unit exactly as the tool documents it, and when the documentation is unclear, test with a file of known size. This page uses KiB for 1,024 bytes only. The same caution applies to memory modules and cache sizes, which are binary by construction and sold with plain KB or MB labels in many datasheets.

Sparse files and allocated space

The conversion restates a number. It does not tell you how much space files actually occupy, because sparse files, compression and block rounding make allocated size differ from apparent size. A directory with millions of tiny files can occupy far more kibibytes on disk than the sum of its file lengths, since each file takes at least one block. When du reports a total in 1,024-byte units, check whether it shows apparent size or disk usage before converting. Use this page for the unit step, and rely on the filesystem tools to say what space is consumed.

Cross-checking against the mebibyte and gibibyte pages

Because the units are all binary, you can verify a kibibyte result by a second route. Multiply the tebibyte value by 1,024 to get gibibytes, by 1,024 again for mebibytes and by 1,024 once more for kibibytes. For 10 TiB that gives 10,240 GiB, then 10,485,760 MiB, then 10,737,418,240 KiB. If the final number differs from the page, one of the steps used 1,000 instead of 1,024. This habit also helps with documentation: when you publish a table that lists a volume in several units, produce each row from the one above it and keep the symbols visible, so that a reader can follow the chain and trust the totals.