What Is a Bit? A Small Unit With an Eightfold Catch
The difference between a lowercase b and an uppercase B can make a download speed look eight times more impressive. Behind that small typographical trap is the bit, computing's basic binary unit.
A bit, short for binary digit, has one of two values: 0 or 1. That's the definition used by NIST, the National Institute of Standards and Technology.
One bit can represent a single yes-or-no choice. Put bits together, and the number of possible patterns grows quickly.
Two choices, many combinations
Picture two switches, each with an off position and an on position. Write off as 0 and on as 1, and you get four arrangements: 00, 01, 10 and 11.
A third switch doubles the possibilities to eight, because it can be off or on for every existing arrangement. Each additional bit doubles the number again.
With eight bits, there are 256 possible patterns. If you're using them to count whole numbers starting at zero, those patterns can represent 0 through 255.
- Make LEDs blink and sensors report in an afternoon with more than 22 guided lessons.
- Start with no soldering: everything plugs into the breadboard.
- See how code controls real hardware, the first step toward understanding any device.
The switches are an illustration of the choices, not a claim that your computer has a tiny mechanical switch for every bit.
Eight bits make a byte
A byte is a group of eight bits. File sizes are commonly shown in bytes and their larger multiples, while connection speeds are commonly shown in bits per second.
The letters matter: b means bit, while B means byte.
The prefix mega means a million, so 100 megabits is 100 million bits. Divide by eight to convert that quantity into bytes: 12.5 million bytes, or 12.5 megabytes.
That makes 100 Mbps equal to 12.5 MB/s before accounting for anything else: megabits per second on the left, megabytes per second on the right.
For a simplified calculation, suppose a 100-megabyte file could use that entire rate for its contents. It would take eight seconds to transfer; real downloads can take longer because connection capacity also carries supporting information and isn't always fully available.
There's another labeling wrinkle: a megabyte (MB) is 1,000,000 bytes, while a mebibyte (MiB) is 1,048,576 bytes. NIST's binary-prefix table spells out the difference, which comes from counting in powers of ten versus powers of two.
Bits or Bytes: Why the Difference Matters
Bits need rules to mean something
A sequence of bits doesn't announce whether it represents a letter, a color or part of a program. Software interprets the sequence according to an agreed format.
For example, UTF-8 is a set of rules for representing text. Under those rules, the letter A occupies one byte, while é needs two; the UTF-8 specification describes these variable lengths.
So a byte isn't automatically one written character, and a bit isn't automatically one pixel in a picture. The format tells the computer how to assemble those small pieces into something meaningful.
Next time a download meter seems much slower than a connection's advertised number, compare the units first. Eight bits travel under a very small lowercase letter.
Byte: Why One Character Can Take More Than One Byte

Octet: Why an IPv4 Number Stops at 255

Logic Gates: How Simple Rules Build a Circuit

QUOTE:
"Amateurs hack systems, professionals hack people."
