math

Binary Number

A number expressed in base-2 using only the digits 0 and 1, fundamental to computer science and digital electronics.

The binary number system (base-2) uses only 0 and 1. Every digital device β€” from smartphones to supercomputers β€” processes data as binary.

Conversion

Binary 1011 = 1Γ—2Β³ + 0Γ—2Β² + 1Γ—2ΒΉ + 1Γ—2⁰ = 8 + 0 + 2 + 1 = 11 in decimal.

Related Bases

  • Octal (base-8): Groups of 3 binary digits
  • Hexadecimal (base-16): Groups of 4 binary digits, uses 0–9 and A–F

Binary Arithmetic

0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry 1). Same logical rules for multiplication.

Why Computers Use Binary

Digital circuits are built from transistors that are most reliably operated as simple on/off switches β€” representing exactly two states (0 and 1) is far more robust against electrical noise than trying to distinguish ten distinct voltage levels for base-10. This reliability, not mathematical elegance, is why binary underlies all modern computing.

Bits, Bytes, and Beyond

A single binary digit is a bit. Eight bits make a byte, which can represent 256 distinct values (0–255) β€” enough for one ASCII character. File sizes scale up from there: kilobyte, megabyte, gigabyte, each roughly 1,000Γ— (or, technically, 1,024Γ—) the previous unit.

Related Calculators

Related Terms