Due to the need to work with data sizes that range from small to large, units of information cover a wide range of data sizes. Units are defined as multiples of a smaller unit except for the smallest unit which is based on convention and hardware design. Multiplier prefixes are used to describe relatively large sizes.
For binaryhardware, the most common hardware today, the smallest unit is the bit, which represents a value that is one of two possibilities, typically shown as 0 and 1. The nibble, 4 bits, represents the value of a single hexadecimal digit. The byte (8 bits, 2 nibbles) is possibly the most commonly known and used base unit to describe data size. The word is a size that varies by and has a special importance for a particular hardware context. On modern hardware, a word is typically 2, 4 or 8 bytes, but the size varies dramatically on older hardware. Larger sizes can be expressed as multiples of a base unit via SImetric prefixes (powers of ten) or the newer and generally more accurate IECbinary prefixes (powers of two).
In 1928, Ralph Hartley observed a fundamental storage principle,[1] which was further formalized by Claude Shannon in 1945: the information that can be stored in a system is proportional to the logarithm of N possible states of that system, denoted logbN. Changing the base of the logarithm from b to a different number c has the effect of multiplying the value of the logarithm by a fixed constant, namely logcN = (logcb) logbN.
Therefore, the choice of the base b determines the unit used to measure information. In particular, if b is a positive integer, then the unit is the amount of information that can be stored in a system with b possible states.
When b is 2, the unit is the shannon, equal to the information content of one "bit". A system with 8 possible states, for example, can store up to log2 8 = 3 bits of information. Other units that have been named include:
Base b = 3
the unit is called "trit", and is equal to log2 3 (≈ 1.585) bits.[2]
the unit is called a nat, nit, or nepit (from Neperian), and is worth log2e (≈ 1.443) bits.[1]
The trit, ban, and nat are rarely used to measure storage capacity. But the nat, in particular, is often used in information theory, because natural logarithms are mathematically more convenient than logarithms in other bases.
Units derived from bit
Several conventional names are used for collections or groups of bits.
Byte
Historically, a byte was the number of bits used to encode a character of text in the computer, which depended on computer hardware architecture, but today it almost always means eight bits – that is, an octet. An 8-bit byte can represent 256 distinct values, such as non-negative integers from 0 to 255, or signed integers from −128 to 127. The IEEE 1541-2002 standard specifies "B" (upper case) as the symbol for byte (IEC 80000-13 uses "o" for octet in French, but also allows "B" in English). Bytes, or multiples thereof, are almost always used to specify the sizes of computer files and the capacity of storage units. Most modern computers and peripheral devices are designed to manipulate data in whole bytes or groups of bytes, rather than individual bits.
Nibble
A group of four bits, or half a byte, is sometimes called a nibble, nybble or nyble. This unit is most often used in the context of hexadecimal number representations, since a nibble has the same number of possible values as one hexadecimal digit has.[6]
Word, block, and page
Computers usually manipulate bits in groups of a fixed size, conventionally called words. The number of bits in a word is usually defined by the size of the registers in the computer's CPU, or by the number of data bits that are fetched from its main memory in a single operation. In the IA-32 architecture more commonly known as x86-32, a word is 32 bits, but other past and current architectures use words with 4, 8, 9, 12, 13, 16, 18, 20, 21, 22, 24, 25, 29, 30, 31, 32, 33, 35, 36, 38, 39, 40, 42, 44, 48, 50, 52, 54, 56, 60, 64, 72[7] bits or others.
Some machine instructions and computer number formats use two words (a "double word" or "dword"), or four words (a "quad word" or "quad").
Computer memory caches usually operate on blocks of memory that consist of several consecutive words. These units are customarily called cache blocks, or, in CPU caches, cache lines.
Virtual memory systems partition the computer's main storage into even larger units, traditionally called pages.
Multiplicative prefixes
A unit for a large amount of data can be formed using either a metric or binary prefix with a base unit. For storage, the base unit is typically a byte. For communication throughput, a base unit of bit is common. For example, using the metric kilo prefix, a kilobyte is 1000 bytes and a kilobit is 1000 bits.
Use of metric prefixes is common. In the context of computing, some of these prefixes (primarily kilo, mega and giga) are used to refer to the nearest power of two. For example, 'kilobyte' often refers to 1024 bytes even though the standard meaning of kilo is 1000.[8]
Symbol
Prefix
Multiple
k
kilo
1000
M
mega
10002
G
giga
10003
T
tera
10004
P
peta
10005
E
exa
10006
Z
zetta
10007
Y
yotta
10008
R
ronna
10009
Q
quetta
100010
The International Electrotechnical Commission (IEC) standardized binary prefixes for binary multiples to avoid ambiguity through their similarity to the standard metric terms. These are based on powers of 1024, which is a power of 2.[9]
Symbol
Prefix
Multiple
Example
Ki
kibi
210, 1024
kibibyte (KiB)
Mi
mebi
220, 10242
mebibyte (MiB)
Gi
gibi
230, 10243
gibibyte (GiB)
Ti
tebi
240, 10244
tebibyte (TiB)
Pi
pebi
250, 10245
pebibyte (PiB)
Ei
exbi
260, 10246
exbibyte (EiB)
Zi
zebi
270, 10247
zebibyte (ZiB)
Yi
yobi
280, 10248
yobibyte (YiB)
Ri
robi
290, 10249
robibyte (RiB)
Qi
quebi
2100, 102410
quebibyte (QiB)
The JEDEC memory standard JESD88F notes that its inclusion of the definitions of kilo (K), mega (M) and giga (G) based on powers of two are included only to reflect common usage, but that these are otherwise deprecated.[10]
Size examples
1 bit: Answer to a yes/no question
1 byte: A number from 0 to 255
90 bytes: Enough to store a typical line of text from a book
4096 bytes = 4 KiB: A memory page in x86 (since Intel 80386) and many other architectures, also the modern Advanced Format hard disk drive sector size.
4 kB: About one page of text from a novel
120 kB: The text of a typical pocket book
1 MiB: A 1024×1024 pixel bitmap image with 256 colors (8 bpp color depth)
3 MB: A three-minute song (133 kbit/s)
650–900 MB – a CD-ROM
1 GB: 114 minutes of uncompressed CD-quality audio at 1.4 Mbit/s
16 GB: DDR5 DRAM laptop memory under $40 (as of early 2024)
128 bits: hexlet,[36][41] paragraph (on Intel x86 processors)[42][43]
256 bytes: page (on Intel 4004,[44]8080 and 8086 processors,[42] also many other 8-bit processors – typically much larger on many 16-bit/32-bit processors)
↑Comprehensive Statistical Theory of Communication. 2001.
↑Nybble at dictionary reference.com; sourced from Jargon File 4.2.0, accessed 2007-08-12
↑"Chapter I. Integer arithmetic". The Mathematical-Function Computation Handbook – Programming Using the MathCW Portable Software Library (1 ed.). Salt Lake City, UT, US: Springer International Publishing AG. 2017-08-22. p. 970. doi:10.1007/978-3-319-64110-2. ISBN978-3-319-64109-6.
↑ 14.014.1 (in de) Taschenbuch der Nachrichtenverarbeitung (2 ed.). Berlin / Heidelberg / New York: Springer-Verlag OHG. 1967. pp. 835–836. Title No. 1036.
↑ 15.015.1 (in de) Taschenbuch der Informatik – Band III – Anwendungen und spezielle Systeme der Nachrichtenverarbeitung. 3 (3 ed.). Berlin / Heidelberg / New York: Springer Verlag. 1974. pp. 357–358. ISBN3-540-06242-4.
↑Theory of magnetic recording (1 ed.). Cambridge University Press. 1994. 9-780521-449731. ISBN0-521-44973-1. "[...] The writing of an impulse would involve writing a dibit or two transitions arbitrarily closely together. [...]"
↑Steinbuch, Karl W., ed (1962). written at Karlsruhe, Germany (in de). Taschenbuch der Nachrichtenverarbeitung (1 ed.). Berlin / Göttingen / New York: Springer-Verlag OHG. p. 1076.
↑ (in de) Datenverarbeitungs-Lexikon (softcover reprint of hardcover 1st ed.). Wiesbaden, Germany: Springer Fachmedien Wiesbaden GmbH / Betriebswirtschaftlicher Verlag Dr. Th. Gabler GmbH. 2013. pp. 201, 308. doi:10.1007/978-3-663-13618-7. ISBN978-3-409-31831-0. https://books.google.com/books?id=3aN9BwAAQBAJ. Retrieved 2016-05-24. "[...] slab, Abk. aus syllable = Silbe, die kleinste adressierbare Informationseinheit für 12 bit zur Übertragung von zwei Alphazeichen oder drei numerischen Zeichen. (NCR) [...] Hardware: Datenstruktur: NCR 315-100 / NCR 315-RMC; Wortlänge: Silbe; Bits: 12; Bytes: –; Dezimalziffern: 3; Zeichen: 2; Gleitkommadarstellung: fest verdrahtet; Mantisse: 4 Silben; Exponent: 1 Silbe (11 Stellen + 1 Vorzeichen) [...] [slab, abbr. for syllable = syllable, smallest addressable information unit for 12 bits for the transfer of two alphabetical characters or three numerical characters. (NCR) [...] Hardware: Data structure: NCR 315-100 / NCR 315-RMC; Word length: Syllable; Bits: 12; Bytes: –; Decimal digits: 3; Characters: 2; Floating point format: hard-wired; Significand: 4 syllables; Exponent: 1 syllable (11 digits + 1 prefix)]"
↑ 36.036.136.236.3IEEE Standard for a 32-bit Microprocessor Architecture. The Institute of Electrical and Electronics Engineers, Inc.. 1995. pp. 5–7. doi:10.1109/IEEESTD.1995.79519. ISBN1-55937-428-4. (NB. The standard defines doublets, quadlets, octlets and hexlets as 2, 4, 8 and 16 bytes, giving the numbers of bits (16, 32, 64 and 128) only as a secondary meaning. This might be important given that bytes were not always understood to mean 8 bits (octets) historically.)
↑ 38.038.1Raymond, Eric S. (1996). The New Hacker's Dictionary (3 ed.). MIT Press. p. 333. ISBN0262680920.
↑Zinterhof, Peter; Vajteršic, Marian; Uhl, Andreas, eds (February 1999). "Parallel Cluster Computing with IEEE1394–1995". written at Salzburg, Austria. Parallel Computation: 4th International ACPC Conference including Special Tracks on Parallel Numerics (ParNum '99) and Parallel Computing in Image Processing, Video Processing, and Multimedia. Berlin, Germany: Springer Verlag.
↑Microprocessors – A Programmer's View (1 ed.). Courant Institute, New York University, New York, US: McGraw-Hill Publishing Company. 1990. p. 85. ISBN0-07-016638-2. (xviii+462 pages)
↑"Terms And Abbreviations / 4.1 Crossing Page Boundaries". MCS-4 Assembly Language Programming Manual – The INTELLEC 4 Microcomputer System Programming Manual (Preliminary ed.). Santa Clara, California, US: Intel Corporation. December 1973. pp. v, ((2-6)), ((4-1)). MCS-030-1273-1. http://bitsavers.trailing-edge.com/components/intel/MCS4/MCS-4_Assembly_Language_Programming_Manual_Dec73.pdf. Retrieved 2020-03-02. "[...] Bit – The smallest unit of information which can be represented. (A bit may be in one of two states I 0 or 1). [...] Byte – A group of 8 contiguous bits occupying a single memory location. [...] Character – A group of 4 contiguous bits of data. [...] programs are held in either ROM or program RAM, both of which are divided into pages. Each page consists of 256 8-bit locations. Addresses 0 through 255 comprise the first page, 256-511 comprise the second page, and so on. [...]" (NB. This Intel 4004 manual uses the term character referring to 4-bit rather than 8-bit data entities. Intel switched to use the more common term nibble for 4-bit entities in their documentation for the succeeding processor 4040 in 1974 already.)