• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » Kibibytes, Mebibites, Gibibites!

Kibibytes, Mebibites, Gibibites!

June 3, 2020 - by Zsolt Agoston - last edited on August 27, 2021

Have you ever bought a brand new SSD with 256GB on it's label, then when connecting it to a computer the storage space of only 240GB was showing? Were you taught in school that a 'kilobyte' is actually 1024 bytes, not 1000 bytes as the metric system would suggest? Well, it's true but the same time it's not.

The SI calculation

To put it simple, there are two ways of calculate the multiples of data units in the IT industry. Traditionally K stands for Kilo, M for Mega, T for Tera, P for Peta etc. metric multipliers. They are all the powers of 1000 (103), as they are based on our decimal system. However, in IT from the very beginning of times multipliers always have been the powers of 2, namely powers of 2^10 that equals 1024. This is because computers are using the binary system, so calculating with multiples of 1024 aligned more naturally with computer logic.

1000 or 1024?

The problem is that people started to handle this matter very liberally. For actual calculations most likely 1024 is used as the multiplier. However, storage manufacturer prefers the SI way, with the 1000 multiples as that produces a seemingly higher number of storage space.

For example, take a disk with 256,000,000,000 bytes. If they use the powers of 1000 as the multiplier, they will get 256,000,000,000 / 10003 = 256 GB to be put on the label of the disk. However, using the classic 210 multiplier, the result will only be 256,000,000,000 / 10243 = 238 GB. For storage manufacturers, it's more appealing to go the SI way, but this generates confusion as there is really no way to say which calculation was used when kilo, mega, giga, etc prefixes are present.

When someone says "one kilobyte" it isn't clear it they mean 1000 bytes as the SI measurements dictates, or 1024 bytes as the old IT convention was measuring "kilo".

Kibibytes, Mebibites, Gibibites!

Kilo binary = Kibi!

Finally, In 1995 the International Electrotechnical Commission (IEC) came out with a proposal of using the following prefixes for the latter: Kibi - kilo binary, Mebi - mega binary, Gibi - giga binary, Tebi - tera binary, etc. They mark the difference with a lowercase 'I' after the classical multiplier letter. KiB stands for kibibites, PiB is pebibites, etc.

Windows and Unix systems both use this system, they mark 1024 as 1K, 1024K as 1M, etc.

See the Screenshots below. Windows marks Gibitites as GB. The next screenshots how a CentOS machine, by default it's also displaying Gibites when files are listed with the -h (human readable) switch.

Kibibytes, Mebibites, Gibibites!

However, if we want to view file sizes displayed in the SI format, we simply need to use the ls --si switch as seen below.

Note: Linux displays Kibibytes with a capital K. Kilobytes are marked with a lowercase k.

Kibibytes, Mebibites, Gibibites!

The conclusion is that in IT, data units should - as technically calculated the IEC way - really be called Kibi-, Mebi-, Gibi-, etc bytes or bits. However, because these units have never made their way into our everyday language, they are still called giga-, tera-, etc so just be aware of the differences and know why are actual storage spaces are smaller than they are actually labelled 🙂

Reader Interactions

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • The SI calculation
  • 1000 or 1024?
  • Kilo binary = Kibi!

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}