DAC Resolution Calculator

Calculate Digital-to-Analog Converter (DAC) step size (LSB), total output levels, and convert between digital codes and output voltages for any bit resolution and reference voltage.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Enter DAC resolution in bits (typically 8, 10, 12, 14, 16, or 24).
  2. Enter the reference voltage Vref that defines full-scale output.
  3. Convert in either direction: enter a code to see the output voltage, or a voltage to see the equivalent code.
  4. Results: LSB (smallest step), number of levels, max output code, and converted values.
  5. Codes can be typed in decimal or hex (0x5C3); a code above 2N − 1 is flagged as out of range.
Input
V
V
Presets
Output
LSB
—
Levels
—
Code → V
—
V → Code
—

Worked Example

A 12-bit DAC with a 5 V reference must output 1.8 V. LSB = 5 ÷ 2¹² = 5 ÷ 4096 = 1.2207 mV. Code = round(1.8 ÷ 0.0012207) = round(1474.56) = 1475 (0x5C3), which outputs 1475 × 1.2207 mV = 1.80054 V, 0.54 mV high and within half a step.

Top of the range: the largest code is 4095, which outputs 4095 × 1.2207 mV = 4.99878 V. A DAC never quite reaches its reference; full scale is one LSB short.

The common mistake: dividing by 4095 instead of 4096. That gives code 1474.2, rounded to 1474, which outputs 1.79932 V: 0.68 mV low, and the wrong code for most DACs, whose datasheets define V = Vref × code ÷ 2N.

Show Work

Enter values to see the DAC math.

Formulas

LSB Size
LSB = Vref / 2N
Smallest step.
Code → Voltage
V = code × LSB
Linear DAC output.
Voltage → Code
code = round(V / LSB)
Clamped to 0..2N−1.
Max Code / Output
2N − 1 → Vref − LSB
Max output is one LSB below full-scale.
Dynamic Range
6.02·N + 1.76 dB
Ideal SNR limit.
Glitch Energy
pV·s at major-carry
Matters at high update rates.

History of the DAC

Converting numbers back into voltages became necessary as soon as digital computers had to drive analog equipment such as plotters, displays and control systems in the 1950s. The weighted-resistor network, in which each bit switches in a resistor twice the value of the next, was the obvious first design but needs a huge spread of precise values. The R-2R ladder solved that with only two resistor values, R and 2R, and it is still used in many DACs today.

Digital audio made DACs mass-market. The Compact Disc (Philips and Sony, 1982) stores 16-bit samples at 44.1 kHz, and early players used multibit converters with steep analog filters. Oversampling and then 1-bit and multi-bit sigma-delta DACs, which move the quantization noise far above the audio band where a gentle filter removes it, took over through the late 1980s and 1990s. High-speed current-steering DACs developed in parallel for instrumentation, video and radio.

Modern specialties span an enormous range: 24-bit audio at 192 kHz; 16-bit, 2.5 Gsps current-steering DACs for software-defined radio; ultra-low-power 8-bit R-string DACs for MCU analog output pins; precision 20-bit DACs for voltage references; and integrated Σ-Δ DACs inside every MCU with audio capability. The basic LSB math in this calculator applies to all of them.

About This Calculator

Enter resolution and reference voltage, then optionally convert between code and output voltage. Useful when setting up a DAC in firmware (converting a desired voltage into the code to write), verifying hardware output (converting the code you wrote into the expected voltage), or sizing a reference chip's output current drive.

For precision work, also look at DAC datasheet specs for INL/DNL (integral and differential nonlinearity), gain/offset error, settling time, and glitch energy — these determine real-world accuracy beyond the theoretical LSB step. Everything runs client-side; no values leave your browser.

Frequently Asked Questions

What's the difference between DAC and ADC?

A DAC converts a digital code into an analog voltage; an ADC does the reverse. Both follow the same LSB = Vref/2N math. The difference is direction of data flow and the internal architecture — DACs use R-2R ladders, string DACs, or Σ-Δ modulators; ADCs use SAR, flash, pipelined, or Σ-Δ.

What is glitch energy?

When a DAC transitions between codes (especially at major carries like 7FFF → 8000), internal switches don't change simultaneously — the output briefly passes through intermediate values, producing a narrow "glitch" before settling. Glitch energy is measured in pV·s (picovolt-seconds) and matters at high update rates where glitches can exceed the actual signal step.

Monotonic vs linear?

A monotonic DAC guarantees that increasing the input code never decreases output voltage (no "steps backward"). Linearity is tighter: the step size is uniform across all codes. Monotonicity is critical for closed-loop control; linearity matters for precision signal generation.

How does a DAC reconstruct a waveform?

Set a lookup table of codes representing one cycle of the waveform; feed them to the DAC at the sample rate. Example: 100 Hz sine from a 12-bit DAC at 10 ksps requires 100 samples per cycle from a 100-entry table. Output is stepped — add a reconstruction filter (low-pass at fs/2) to smooth the steps into a clean sine.

What's the settling time?

Time from code change to output within ±½ LSB of final value. Modern DACs specify settling time at two accuracies: full-scale step (worst case) and major-carry transition (glitch region). For audio applications, sub-microsecond settling is common; for fast waveform generation, nanosecond settling matters.

How do I use the DAC Resolution Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

CD Audio Output

16-bit DAC at 44.1 kHz gives 96 dB dynamic range and 22.05 kHz analog bandwidth. The first image of a 20 kHz tone appears at 44.1 − 20 = 24.1 kHz, so the reconstruction filter must go from flat at 20 kHz to deep attenuation by 24.1 kHz, which is why modern players oversample.

Waveform Generator

Stepping through a 4096-entry sine table one entry per sample at 1 Msps gives exactly 244.14 Hz. A direct digital synthesis (DDS) phase accumulator steps by fractions of an entry instead, reaching any frequency below fs/2 in steps of fs ÷ 2³², about 0.23 mHz.

Set-Point / Reference

A 12-bit DAC as a programmable voltage reference for analog test equipment: 0 to 5 V in 1.22 mV steps, so any set point is within 0.61 mV (half a step).

PWM Replacement

Replacing a PWM-plus-RC-filter with a direct DAC output gives better settling time and zero ripple — important for sensitive analog control loops.

Sensor Offset Trim

An 8-bit DAC on 3.3 V moves in 12.9 mV steps, often enough to null a sensor amplifier's offset. If the trim must be finer, divide the DAC output down with resistors: a 10:1 divider gives 1.29 mV steps over a 330 mV range.

Last updated: