Bit depth and tonal steps
Bit depth counts how many discrete levels represent a channel value. An n-bit integer encoding offers 2ⁿ steps. That is quantization fineness, not the width of the sensor in megapixels.
An analog voltage from a photosite is continuous within noise limits. An analog-to-digital converter slices that range into integer codes. With 8 bits you get 2⁸ = 256 possible codes per channel (0 through 255). With 12 bits you get 2¹² = 4096 codes. With 14 bits, 16384. More steps mean finer quantization of whatever tone curve sits between black and white in that encoding.
Finer steps matter when you edit. Heavy tone curves, shadow lifts, and colour grading stretch gaps between neighbouring codes. Posterisation appears when those gaps become visible as bands. Starting from 12-bit or 14-bit RAW leaves more codes to redistribute before you export an 8-bit JPEG for the web. Bit depth does not invent photons that were never captured; it only stores the measured tone with finer or coarser rounding.
Spatial resolution is a different axis. Megapixels count how many sample locations cover the frame. You can have a 24-megapixel 12-bit RAW and a 24-megapixel 8-bit JPEG from the same shot: same photosite grid, different tonal quantization and processing. Conversely, a low-megapixel scan can still be 16-bit per channel. Confusing the two numbers mixes “how many pixels” with “how many shades per pixel.”
Worked comparison: the ratio of steps from 12-bit to 8-bit is 4096 / 256 = 16. Each 12-bit code spans a slice sixteen times finer than each 8-bit code across the same full-scale mapping (before gamma and tone curves complicate the story). If you posterise a smooth sky by reducing to 4 bits, 2⁴ = 16 levels, banding is obvious. That demonstration is about depth, not about cropping megapixels.
Limits: encoding bit depth is not identical to usable dynamic range; noise can waste low codes. Gamma encoding distributes steps nonlinearly across lightness. This note only fixes the 2ⁿ counting rule and separates it from spatial resolution.
A misreading
The misreading is that bit depth is resolution in megapixels. Megapixels count spatial samples. Bit depth counts tonal steps per sample. A deeper file can still be soft if the lens is soft; a shallow file can still be sharp if the optics and focus are sharp.
Choose depth for the edits you expect; choose megapixels for the crop and print size you expect. Keep the labels on the right jars.
Terms
- Bit depth
- The number of bits used to encode each channel sample.
- Quantization
- Mapping a continuous range onto a finite set of codes.
- Posterisation
- Visible banding when too few levels remain after processing.
- Megapixel count
- The number of photosites or output pixels in the frame — a spatial measure.
Sources
- Digital imaging textbooks define ADC bit depth as 2ⁿ discrete levels.
- Camera RAW specifications state ADC bit depths separately from sensor megapixel counts.
- This frame is educational arithmetic, not a claim that more bits always look better on screen.
Encoding review. Before publication, a subject-matter editor walks the bit-depth arithmetic against a worked table—drafting tools stay draft-only until that human sign-off.