Lesson 3 / 30
Units, Powers of Ten and Bits vs Bytes
Convert confidently between K, M, G, T, between bits and bytes, and between decimal and binary prefixes.
By Rahul Agarwal · 15 years in web development
Think in powers of ten
Estimation is mostly multiplying and dividing big numbers, so write them as powers of ten. Thousand = 10^3 (K), million = 10^6 (M), billion = 10^9 (G), trillion = 10^12 (T), 10^15 = P (peta). Multiplying means adding exponents: 10^6 users x 10^3 bytes = 10^9 bytes = 1 GB. Two unit traps matter. First, bits versus bytes: network links are quoted in bits per second (Gbps), storage in bytes, and 1 byte = 8 bits, so a 1 Gbps link moves at most about 125 MB per second before protocol overhead. Second, decimal versus binary prefixes: a kibibyte (KiB) is 1,024 bytes and a gibibyte (GiB) is 2^30 bytes, about 7% more than 10^9. For estimation the 7% does not matter, but you should know why a '500 GB' disk shows less space in the operating system.
Quick conversions
A tiny helper that keeps you honest about bits and bytes.
GB = 10**9
GiB = 2**30
print("GiB / GB =", round(GiB / GB, 3))
link_gbps = 10
bytes_per_sec = link_gbps * 10**9 / 8
print(f"{link_gbps} Gbps ~ {bytes_per_sec / 10**9:.2f} GB/s at best")
users, bytes_each = 10**6, 10**3
print(f"10^6 users x 1 KB = {users * bytes_each / GB:.0f} GB")
Output:
GiB / GB = 1.074 10 Gbps ~ 1.25 GB/s at best 10^6 users x 1 KB = 1 GB
Lowercase b is bits
Mb or Mbps means megabits; MB means megabytes. Many wrong answers come from dividing a disk size in MB by a link speed in Mbps without the factor of 8.
Lakh and crore
Indian numbering already trains you to group digits differently: 1 lakh = 10^5, 1 crore = 10^7. Estimation simply asks you to switch fluently to powers of ten, the same way you convert between lakh and million in your head.
Quick check: Roughly how many bytes per second can a 1 Gbps link carry at most?
- About 1 GB per second
- About 8 GB per second
- About 1 MB per second
- About 125 MB per second
Answer
About 125 MB per second — 1 Gbps is 10^9 bits per second; dividing by 8 gives 1.25 x 10^8 bytes, about 125 MB/s, and real throughput is a little lower due to protocol overhead.