Convert GiB to TiB

GiB
0.0009765625TiB

1 GiB = 0.0009765625 TiB

One TiB is 1,024 GiB, and the conversion usually turns up while adding disks together. Drives sold in decimal terabytes arrive as untidy gibibyte figures, parity takes a share, and the tebibyte total that survives all of it is what the array is genuinely worth.

  • Where it runs In your browser. The number you type is never part of a request.
  • Exact by definition 1 GiB is exactly 0.0009765625 TiB — a definition, not a rounded factor.
  • Answers as you type No button, no wait. The worked answer is already on the page before any script runs.

Gibibyte to Tebibyte in practice

  • 8 GiB is 0.007813 TiB

    — the memory in a mid-range laptop.

  • 931 GiB is 0.9092 TiB

    — what Windows reports for a one-terabyte drive.

  • 3727 GiB is 3.64 TiB

    — what a four-terabyte drive reports once it is formatted.

  • 16380 GiB is 16 TiB

    — a small server array.

Gibibyte to Tebibyte at a glance

Every figure here is computed from the same definition the calculator uses, so the table cannot drift away from the answer above it.
GiBTiB
100.009765625
200.01953125
500.048828125
1000.09765625
5000.48828125
10000.9765625
50004.8828125
100009.765625

Gibibyte and Tebibyte

A gibibyte is 1,073,741,824 bytes — about 7% more than a gigabyte. Windows measures in gibibytes and labels them GB, which is the whole of the missing-space mystery.

A tebibyte is 1,024 gibibytes. The gap against the terabyte has grown with each step: 2.4% at kilo, 4.9% at mega, 7.4% at giga, 10% at tera.

It takes 1,024 gibibytes to make a tebibyte

Going this way is a division, and by a whole number: 1,024 of these fit into one tebibyte with nothing left over. The awkwardness is only that the answers come out as fractions — a third of a tebibyte, a twelfth of one — rather than as the round figures the other direction gives you.

Nothing is lost to rounding even so. The division is exact, and if your answer will not sit still as a decimal — 0.0833… and friends — that is the fraction showing through, not an error creeping in.

GiB is the binary one

One GiB is 1,024 of the unit below it; one GB is 1,000. On this page that is the difference between 0.001 TiB and 0.0009 TiB — 7.4 % — and the gap grows at every step up the scale, which is why it is a rounding error on a photograph and a visible chunk of a hard disk.

This is the whole of the missing-storage mystery, and on this page it is worth 7.4 %. A drive sold in GB holds exactly what the label says; Windows divides by 1,024 instead of 1,000, keeps the decimal name, and reports 0.0009 TiB where the box said 0.001. macOS has counted these in the decimal units since 10.6, which is why the same drive can look two sizes on two machines — nothing is missing and nobody is rounding, the same bytes have two names.

Two conversions happen between the invoice and the pool

Drives are sold in decimal terabytes and pools are counted in binary units, so the first thing that happens to a purchase is a ten per cent haircut that is not a haircut at all. A 4 TB drive holds 4,000,000,000,000 bytes exactly as advertised, which is 3,725.29 GiB or 3.638 TiB. Eight of them are 29,802 GiB, or 29.10 TiB, and the invoice says 32 TB. Nothing has been lost between those two figures; they are the same bytes counted in different bases.

The second conversion is the one that removes real capacity, and it comes after: parity or mirroring, the reserve the filesystem keeps, and the fill ceiling anybody sensible plans to. Keeping the two separate is what makes a capacity plan checkable. State the raw figure in tebibytes first, then each deduction with a reason, rather than presenting one number that is 40 per cent below the invoice with no working shown.

zpool list and zfs list are not answering the same question

This is the most common source of a gibibyte figure that will not reconcile. zpool list reports the raw size of the vdevs, parity included, because that is what the pool layer manages. zfs list reports what the dataset layer can store, parity excluded. On an eight-disk raidz2 pool the first will show roughly a third more than the second, and both are correct.

The rule that follows is to take capacity figures from the layer that matches the question. Planning how much data will fit is a zfs list question. Working out whether a replacement drive is large enough, or how much a resilver has to read, is a zpool list question. Converting the wrong one to tebibytes and putting it in a plan produces an array that runs out a third earlier than the spreadsheet said it would.

Parity arithmetic, before the padding that follows it

The headline arithmetic is simple. A mirror gives half. RAID 5 and raidz1 give n − 1 disks of data. RAID 6 and raidz2 give n − 2. A striped mirror gives half regardless of width. Eight 3,725.29 GiB drives in raidz2 give six drives of data, 22,351 GiB, or 21.83 TiB, and the same eight as four mirrored pairs give 14,901 GiB, or 14.55 TiB, with far better rebuild behaviour.

Padding takes a further slice that the headline arithmetic misses. ZFS allocates in units derived from the sector size, so records that do not divide evenly across the data disks leave gaps, and the effect is worst with small record sizes on wide vdevs. For a general file server with the default 128 KiB record size the loss is small; for a pool holding a database with an 8 KiB record size on ashift=12 disks it can run to a fifth of the nominal capacity, which is worth modelling before the pool is built rather than discovering afterwards.

The reserve that exists so a full pool can be emptied

A copy-on-write filesystem cannot free a file by overwriting a bit in place; it has to write new metadata, which requires free space. A pool that reached genuinely zero free space would therefore be unable to delete anything, which is a state with no way out. ZFS avoids it by holding back a share — a thirty-second of the pool by default — that ordinary writes cannot touch.

On a 32 TiB pool that is around 1 TiB set aside, and it is not visible as free space in the figure users see. It is a fixed proportion rather than a fixed amount, so it grows with the pool, and it is one of the deductions that should appear explicitly in a capacity plan. Btrfs has an analogous problem and handles it differently, through global reserve and the balance operation, but the underlying constraint is the same for any filesystem that never overwrites in place.

The fill ceiling is a real deduction, not a safety margin

Allocation performance on a copy-on-write pool degrades as free space fragments, and it degrades sharply rather than gradually. The allocator has to search harder for contiguous space, writes become scattered, and read performance follows because the data landed scattered. The usual guidance is to plan on eighty per cent for a general-purpose pool and lower for one with a heavy random write load.

That turns 32 TiB of usable capacity into roughly 25.6 TiB of planning capacity, and treating the difference as a margin to be eaten into during a busy quarter is how a pool ends up slow and hard to recover. Converting the gibibyte total to tebibytes and applying the ceiling in the same step gives one number to plan against; keeping the raw figure in the plan invites somebody to use it.

Growing the array happens in vdevs, not gibibytes

A pool does not grow by an arbitrary amount. Adding capacity means adding another vdev of the same shape, or replacing every drive in an existing vdev with a larger one and letting it expand once the last is done. Recent ZFS releases can add a single disk to a raidz vdev, but the pre-existing data keeps its old parity ratio until it is rewritten, so the usable figure moves less than the arithmetic suggests.

The consequence for planning is that the growth increment is large and known in advance. An eight-drive raidz2 vdev of 4 TB disks adds 21.83 TiB at a time, so a plan that will exceed capacity in eighteen months has a purchasing decision with a discrete size rather than a rate. Working the increment out in tebibytes early makes it obvious whether the next step is one vdev or two, which is usually the question that matters.

Snapshots make the usable tebibyte figure move on its own

A snapshot costs nothing when taken and grows as the live data diverges from it. A dataset holding 4 TiB with a month of daily snapshots and a heavy rewrite pattern can consume several times that, and none of the growth is visible in the size of the current data. zfs list -o space breaks it out into used, usedbysnapshots, usedbydataset and usedbyrefreservation, and that breakdown is where an unexplained shortfall usually turns out to live.

The planning consequence is that the usable tebibyte figure has to be reduced by an allowance for snapshot retention, and the allowance depends on the rewrite rate rather than on the size of the data. A media archive that is written once needs almost nothing; a virtual machine store where every guest rewrites its filesystem daily needs a large multiple. Where the rate is unknown, taking a fortnight of measurements is far cheaper than the alternative of finding out when the pool fills.

Convert GiB to TiB: common questions

How many GiB are in one TiB?

Exactly 1,024, the same ratio as kibibytes to mebibytes and mebibytes to gibibytes. Every step in the binary series is a ten-bit shift, so a gibibyte total divided by 1,024 is exact and a gibibyte total divided by 1,000 is 2.4 per cent high.

How many GiB does a 4 TB drive hold?

3,725.29, which is 3.638 TiB. The drive holds exactly four trillion bytes as advertised; the shortfall against "4 TiB" is the ten per cent gap between the decimal and binary tera prefixes, and it is a labelling difference rather than anything missing.

Why does zpool list report more space than zfs list?

Because they measure different things. `zpool list` reports raw capacity including the space parity occupies, while `zfs list` reports what the filesystem can actually store. On a raidz2 vdev the difference is roughly the two parity disks' worth, so a pool showing 43.5 TiB in one and 32 TiB in the other is behaving correctly.

How much does raidz2 cost me?

Two disks' worth of the vdev, plus a variable amount of padding that depends on record size and sector size. Eight 4 TB drives in one raidz2 vdev give six drives of data — 22,351 GiB, or 21.83 TiB — before padding, and a few per cent less after. Wider vdevs waste proportionally less on parity and resilver more slowly, which is the trade being made.

What is the ZFS slop reserve?

A share of the pool that ZFS refuses to hand out so that it can still perform the copy-on-write operations needed to delete things. It defaults to a thirty-second of the pool, so a 32 TiB pool holds back around 1 TiB. Without it a genuinely full copy-on-write filesystem could not be emptied, because freeing a file requires writing metadata.

Should I plan on filling the array?

No. Copy-on-write filesystems fragment as they approach full and allocation slows sharply; the common guidance is to stay under about eighty per cent for a general-purpose pool. That turns a 32 TiB usable figure into roughly 25.6 TiB of planning capacity, which is the number that belongs in a capacity plan rather than the raw one.

Going the other way: Tebibyte to Gibibyte

One TiB is 1024 GiB. It is the same relationship read backwards, so an answer from one page put through the other has to come back to where it started.

Where these figures come from

The claims this page makes about data units are checkable, and these are the documents that settle them.

How this page works

The factor is a constant in the page and the arithmetic is four operations, so nothing is sent anywhere and nothing needs to be. The number you type never leaves the browser — there is no request for it to travel in.