Skip to content

Comparator Hysteresis (Schmitt Trigger) Calculator

Calculate comparator hysteresis trip points for Schmitt trigger circuits, upper and lower threshold voltages, and design resistor values for a desired hysteresis percentage

Superposition at the + input · output swings 0 V to V_ccAPI slug comparator-hysteresis

Sign in to saveSave

Specification

Example
Reference voltage, applied through R1 to the non-inverting input; the input signal drives the inverting input

0 V or more

100 mV or more

Resistor from the reference voltage to the non-inverting input (with a divider, its Thevenin resistance)

1 Ω to 10 MΩ

Feedback resistor from the comparator output to the non-inverting input; with R1 it sets the hysteresis

1 Ω to 10 MΩ

Desired hysteresis as percentage of supply voltage (for design calculation)
%

0.1 to 50 %

Rounds every part to the nearest value in the series; the response and the export are the rounded design's.

Circuit

Values shown: Ideal
−+INOUTR2 100 kΩR1 10 kΩV_REF
RefPositionIdeal
R1Reference10kΩ
R2Feedback100kΩ

Response

Upper Trip Point
2.727V
Lower Trip Point
2.273V
Hysteresis Band
454.5mV
Calculated R1 (for desired hyst%)R1calc
5.26kΩ
R2 (used)R2used
100kΩ

Formula

TI SNOA997A, Inverting comparator with hysteresis circuit
VT+=Vref×R2/(R1+R2)+Vcc×R1/(R1+R2),VT−=Vref×R2/(R1+R2)V_T+ = V_{ref} × R2/(R1+R2) + V_{cc} × R1/(R1+R2), V_T− = V_{ref} × R2/(R1+R2)
SymbolQuantityYour value
VrefReference voltage (V)2.5 V
VccSupply voltage (V)5 V
R1Reference resistor, V_ref to the non-inverting input (Ω)10 kΩ
R2Feedback resistor, output to the non-inverting input (Ω)100 kΩ
ΔVHysteresis band (V)—

Assumptions

5 items
  1. 01An inverting comparator with hysteresis (TI SNOA997A): the signal drives the inverting input, R₁ runs from V_ref to the non-inverting input, and R₂ feeds the output back to it.
  2. 02The output swings rail to rail, 0 V to V_cc, so by superposition at the + input the upper trip point is V_ref·R₂/(R₁ + R₂) + V_cc·R₁/(R₁ + R₂), the lower V_ref·R₂/(R₁ + R₂), and the band their difference, V_cc·R₁/(R₁ + R₂); the input rising past the upper point sends the output low.
  3. 03V_ref is a stiff source, or R₁ the Thévenin resistance of a divider that sets it; the comparator is ideal, so its offset, its own hysteresis, its delay and an open-drain output’s pull-up, which adds to R₂ while the output is high, are not modelled.
  4. 04The calculated R₁ is the one that gives the desired hysteresis, a percentage of V_cc, with the R₂ used: R₁ = R₂·ΔV/(V_cc − ΔV), which is not rounded to the series.
  5. 05With a part series chosen, R₁ and R₂ are each rounded to the nearest value of that series, and the trip points and the band are the rounded resistors’; the page can also solve R₁ for a target band, on the ideal design, and then round it.

Worked example

3 % band about 1.65 V on 3.3 V, E24

A comparator on 3.3 V switches a slow signal about a 1.65 V reference and should have 3 % of the supply, 99 mV, of hysteresis, with a 100 kΩ feedback resistor and E24 parts. Which R1 is it, and what trip points and band do the rounded resistors give?

StepExpressionResult
Hysteresis wanted3 % × 3.3 V99 mV
R1 for 3 % of 3.3 V100 kΩ × 0.099 V / (3.3 V − 0.099 V)3.09 kΩ
Deviation of 3.0 kΩ, the nearest E24 value; 100 kΩ is an E24 value already(3.0 / 3.093 − 1) × 100−3.0 %
Upper trip point, output high1.65 V × 100 / (3.0 + 100) + 3.3 V × 3.0 / (3.0 + 100)1.698 V
Lower trip point, output low1.65 V × 100 / (3.0 + 100)1.602 V
Hysteresis band3.3 V × 3.0 / (3.0 + 100)96.12 mV

How it works

Comparator hysteresis calculator computes upper and lower threshold voltages for noise-immune switching — essential for signal detection, zero-crossing circuits, and level conversion. Embedded systems engineers, sensor interface designers, and power electronics engineers use this to prevent oscillation when input signals cross the threshold slowly or with superimposed noise. Per Horowitz & Hill 'Art of Electronics' (3rd ed., p.231), hysteresis creates a deadband where the comparator ignores small input variations, requiring the input to rise above V_TH+ to switch the output low and to fall below V_TH- to switch it high (in the inverting comparator this calculator models). The hysteresis voltage V_hyst = V_TH+ - V_TH- should exceed peak-to-peak noise by at least 2× for reliable switching. Standard comparators (LM339, LM393) require external resistors to set hysteresis; integrated Schmitt triggers (74HC14) have fixed hysteresis of 0.4-0.9V depending on supply voltage.

Practical tips

  • For 5V systems, 74HC14 provides 0.9V hysteresis with no external components — ideal for debouncing and signal conditioning at digital logic levels
  • Calculate feedback resistor: R_fb = R_eq × (V_swing - V_hyst) / V_hyst where R_eq = R1||R2 of input divider; larger R_fb = smaller hysteresis
  • Open-drain comparators (LM339) require pull-up resistor; push-pull comparators (TLV3201) don't — check output type on datasheet

Common mistakes

  • Setting hysteresis narrower than input noise — results in multiple output transitions (chatter) during single input crossing; hysteresis should exceed 2× peak-to-peak noise
  • Using op-amps as comparators — op-amps have recovery delays of 1-100μs when output saturates; dedicated comparators (LM339, LM393) recover in 100-300ns
  • Ignoring comparator propagation delay — LM339 has 1.3μs delay; for high-speed applications, use MAX942 (80ns) or LT1016 (10ns) per Linear Technology selection guide

Frequently asked questions

4 questions
What is the primary purpose of comparator hysteresis?

Prevent output chatter (rapid oscillation) when input signal crosses threshold slowly or with superimposed noise. Per TI application report SLAA068, hysteresis > 2× noise amplitude eliminates false triggers. For 10mVpp noise, use > 20mV hysteresis.

How is hysteresis band typically implemented?

Positive feedback from output to non-inverting input: R_fb connects output to V+ input. When the output is high, V+ sits at the upper threshold V_TH+; when the output is low, V+ falls to the lower threshold V_TH-. The difference creates hysteresis window. ICs with built-in hysteresis include TLV3201 (6mV) and MAX9117 (user-programmable).

Can hysteresis be applied to digital and analog systems?

Yes — Schmitt triggers (74HC14, 40106) provide digital-level hysteresis for logic signals; comparators with feedback resistors provide analog-level hysteresis for sensor interfaces. ADCs with internal comparators (TI ADS1115) include programmable threshold hysteresis for window comparator functions.

How much hysteresis should I use?

Rule of thumb: V_hyst > 2× noise + 2× comparator offset voltage + 2× expected threshold drift. For a sensor signal with 50mVpp noise and LM339 (5mV max offset): V_hyst > 100mV + 10mV = 110mV minimum. Use 150mV for margin. Excessive hysteresis causes delayed detection — balance noise immunity against response time.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • Resistor Kit (1%, E24)Precision 1% thin-film SMD resistor assortment, 0402 packageAmazon →
  • Ceramic Capacitor KitMLCC ceramic capacitor assortment in 0402 packageAmazon →
  • Solderless BreadboardFull-size breadboard for circuit prototypingAmazon →