ratio.

Find a tool

Browse all tools and categories ↗
ELECTRONICS

ADC Code Bin and Quantization Calculator

Map voltage to an ideal equal-bin ADC code or inspect the voltage bin represented by an entered code.

Enter your values

01 / INPUT

Fields marked as calculated are solved from the other inputs. Their unit selectors remain available.

Calculated on your device

YOUR CALCULATION

Result

—

Calculation steps

Work through one step at a time or reveal the complete calculation. The steps use your current inputs.

    How to calculate

    Divide the reference span into equal bins. In voltage mode floor the normalized input and clamp to endpoint codes; in code mode show the corresponding lower/upper thresholds and midpoint reconstruction.

    LSB=(Vupper−Vlower)/2^bits; code=clamp(floor((V−Vlower)/LSB),0,2^bits−1)

    Worked example

    For a 2-bit quantizer spanning 0–4 V, the four bins are [0,1), [1,2), [2,3), [3,4] V. Input 1.2 V maps to code 1 and midpoint 1.5 V.

    Assumptions and input details

    Explicit equal-width floor-bin convention with the exact upper reference endpoint included in the highest bin. Real ADC transfer offsets and endpoint conventions can differ. Bin endpoints use up to fifteen significant digits; numerically unresolved offset/span combinations are rejected. No noise, missing codes, linearity error, sampling or hardware measurement is modeled. Midpoint reconstruction is a convention; saturation can exceed the in-range half-LSB error bound.

    References: Analog Devices: ideal ADC code count and LSB

    Using this calculator

    Can I enter my own problem?

    Yes. Replace the example values with your own inputs. The result, calculation steps, tables and applicable diagrams update from those inputs. Blank or invalid values clear the result; example values are never silently substituted for missing inputs.

    Are the results exact?

    Results use floating-point arithmetic and displayed rounding. Read the formula, assumptions and any stated data precision before interpreting the result.

    Is my input uploaded?

    The calculation runs in your browser. No account, file upload or external AI service is required. Inputs are not saved between page reloads.

    RELATED TOOL · COMPUTINGNumber Base Converter

    Convert a signed integer between bases 2–36 using exact arithmetic. Compare binary, octal, decimal, hexadecimal and base-36 values with place-value steps.

    RELATED TOOL · ELECTRONICSLoaded Voltage Divider Calculator

    Compare unloaded and resistively loaded divider voltage, branch currents and dissipation.

    RELATED TOOL · COMPUTINGFree Space Radio Link Budget Calculator

    Calculate ideal free-space received power, entered sensitivity margin and midpoint first-Fresnel radius.

    ADVERTISEMENT

    Reserved advertising space.