Skip to content

Schmitt Trigger Calculator

Calculate inverting Schmitt trigger threshold voltages and hysteresis band for comparator circuits with positive feedback.

Superposition at the + input · inverting, output swings 0 V to V_ccAPI slug schmitt-trigger

Sign in to saveSave

Specification

Example
Supply voltage for the comparator/op-amp

100 mV to 36 V

Lower divider resistor, from the non-inverting input to ground

1 Ω to 10 MΩ

Upper divider resistor, from Vcc to the non-inverting input

1 Ω to 10 MΩ

Feedback resistor from output to non-inverting input

1 Ω to 10 MΩ

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

Circuit

Values shown: Ideal
−+INOUTR3 100 kΩV_CCR210 kΩR110 kΩ
RefPositionIdeal
R1Bottom10kΩ
R2Top10kΩ
R3Feedback100kΩ

Response

Upper Threshold
2.619V
Lower Threshold
2.381V
Hysteresis
238.1mV
Center Voltage
2.5V

Formula

Horowitz & Hill, "The Art of Electronics" 3rd ed.; TI SNOA997A (comparator with hysteresis)
VTH+=VccR1R1+R2∥R3,VTH−=VccR1∥R3R2+R1∥R3,Vhyst=VTH+−VTH−V_{TH+} = V_{cc}\frac{R_1}{R_1 + R_2 \parallel R_3},\quad V_{TH-} = V_{cc}\frac{R_1 \parallel R_3}{R_2 + R_1 \parallel R_3},\quad V_{hyst} = V_{TH+} - V_{TH-}
SymbolQuantityYour value
VccSupply voltage (V)5 V
R1Lower voltage divider resistor (kΩ)10 kΩ
R2Upper voltage divider resistor (kΩ)10 kΩ
R3Feedback resistor (kΩ)100 kΩ

Assumptions

6 items
  1. 01An inverting Schmitt trigger: the signal drives the inverting input, and the non-inverting input is held by R₂ from V_cc and R₁ to ground, with R₃ fed back from the output, which swings rail to rail, 0 V to V_cc.
  2. 02By superposition at the + input (TI SNOA997A), R₃ is in parallel with R₂ while the output is high and with R₁ while it is low: V_TH+ = V_cc·R₁/(R₁ + R₂∥R₃) and V_TH− = V_cc·(R₁∥R₃)/(R₂ + R₁∥R₃); the input rising past V_TH+ sends the output low, and falling past V_TH− sends it high.
  3. 03The band is V_TH+ − V_TH− = V_cc·(R₁∥R₂)/(R₁∥R₂ + R₃), and the centre is the thresholds’ mean, V_cc/2 when R₁ = R₂.
  4. 04The comparator is ideal: its input offset, its own hysteresis, its propagation delay and an open-drain output’s pull-up, which adds to R₃ while the output is high, are not modelled.
  5. 05With a part series chosen, R₁, R₂ and R₃ are each rounded to the nearest value of that series, and the thresholds, the band and the centre are the rounded resistors’.
  6. 06The page can also solve R₃ for a target band, or R₁ for a target centre: it solves the ideal design for the target and then rounds the solved resistor to the series.

Worked example

250 mV band about 2.5 V on 5 V, E24

An inverting Schmitt trigger on 5 V has its thresholds centred at mid-supply by two 10 kΩ resistors and needs a 250 mV band to reject noise on a slow edge, with E24 parts. Which feedback resistor is it, and what thresholds does the rounded design give?

StepExpressionResult
Feedback resistor for 250 mVR₃ = (10 kΩ ∥ 10 kΩ) × (5 V − 0.25 V) / 0.25 V95 kΩ
Deviation of 91 kΩ, the nearest E24 value for R3; 10 kΩ is an E24 value already(91 / 95 − 1) × 100−4.2 %
R2 ∥ R3, equal to R1 ∥ R310 kΩ ∥ 91 kΩ9.01 kΩ
Upper threshold, output high5 V × 10 / (10 + 9.01)2.63 V
Lower threshold, output low5 V × 9.01 / (10 + 9.01)2.37 V
Hysteresis band2.63 V − 2.37 V260.4 mV
Centre(2.63 V + 2.37 V) / 22.5 V

How it works

Schmitt trigger calculator computes threshold voltages and hysteresis width for noise-immune digital signal conditioning — essential for sensor interfacing, debouncing, and waveform shaping. Embedded engineers, digital designers, and control system engineers use this to convert noisy analog signals into clean digital transitions. Per Horowitz & Hill 'Art of Electronics' (3rd ed., p.231), a Schmitt trigger is a comparator with hysteresis: in the inverting circuit this calculator models, the output switches low when the input rises above V_TH+ and high when it falls below V_TH-. The 74HC14 provides inverting Schmitt triggers with fixed hysteresis of ~0.9V at 5V supply (18% of Vcc) and ~0.5V at 3.3V supply. For adjustable hysteresis, use comparators with positive feedback resistors. Typical applications include converting sine waves to square waves, cleaning up slow edges, and eliminating switch bounce.

Practical tips

  • For logic-level signals, use 74HC14 — six inverting Schmitt triggers in one package, hysteresis about 0.9V at 5V (18% of Vcc), propagation delay 15ns typical per TI datasheet
  • Calculate feedback resistor: R_fb = R_equivalent × (V_out_swing - V_hysteresis) / V_hysteresis, with R_equivalent = R1||R2; larger R_fb produces smaller hysteresis
  • For battery-powered applications, 74LVC14 operates down to 1.65V supply with 90mV-800mV hysteresis (scalable with Vcc)

Common mistakes

  • Using resistor ratios without accounting for comparator output impedance — open-drain outputs require pull-up resistor factored into calculations; push-pull outputs can be ignored
  • Setting hysteresis too wide for the application — excessive hysteresis delays response and may miss valid signal transitions; size hysteresis to 2-3× expected noise level
  • Ignoring temperature drift — threshold voltages drift with resistor temperature coefficients (100ppm/°C typical); use matched resistor networks for critical applications

Frequently asked questions

4 questions
What is a Schmitt trigger?

A comparator with built-in hysteresis that requires the input to rise above V_TH+ to switch one way and fall below V_TH- to switch back. This creates a 'deadband' that ignores noise between thresholds. Per ON Semiconductor application note AN-848, this eliminates output oscillation when input hovers near a single threshold.

Why use hysteresis?

Input signals with noise or slow transitions cause comparators without hysteresis to oscillate rapidly at the threshold. A 100mVpp noise signal crossing a 2.5V threshold can cause thousands of transitions per second. With 200mV hysteresis, only one clean transition occurs per valid signal crossing.

What's the difference between Schmitt trigger and comparator?

A Schmitt trigger IS a comparator — specifically one with hysteresis. Standard comparators (LM339, LM393) have single threshold and require external positive feedback to add hysteresis. ICs labeled 'Schmitt trigger' (74HC14, 40106) have internal hysteresis requiring no external components.

How do I select appropriate hysteresis width?

V_hyst > 2× peak-to-peak noise + comparator offset + threshold drift. For 50mVpp noise with ±5mV comparator offset and ±10mV temperature drift: V_hyst > 100mV + 10mV + 20mV = 130mV. Add 50% margin: design for 200mV. Excessive hysteresis delays detection — balance noise immunity vs. response speed.

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 →