Schmitt Trigger Calculator

Calculate the upper and lower thresholds (VH, VL) and hysteresis of an inverting op-amp or comparator Schmitt trigger, with an optional reference voltage.

Calculator Electronics Updated Oct 16, 2026
How to Use
  1. Check the circuit: the signal goes to the inverting (−) input, R1 runs from the + input to the reference voltage, and R2 feeds back from the output to the + input.
  2. Enter R1 and R2; suffixes such as 10k, 4k7 and 1M work.
  3. Enter the output voltages the comparator really reaches when high and low (the pull-up voltage for an open-collector output).
  4. Enter the reference voltage: 0 V for a split supply, often half the supply for a single-supply circuit.
  5. Read the upper and lower thresholds, the hysteresis between them and the centre of the window.
Input
Ω (k, M OK)
Ω (k, M OK)
V
V
V
Presets
Hysteresis Curve
VH (upper)
—V
VL (lower)
—V
Hysteresis
—V
Center
—V

Worked Example

A comparator on 5 V with a 0 to 5 V output, R1 = 10 kΩ to a 2.5 V reference and R2 = 100 kΩ feedback. The feedback fraction is 10 ÷ 110 = 0.0909. Upper threshold: 2.5 × 0.9091 + 5 × 0.0909 = 2.727 V. Lower threshold: 2.5 × 0.9091 + 0 × 0.0909 = 2.273 V. Hysteresis: 5 × 0.0909 = 0.455 V, centred on 2.5 V.

Without the reference (Vref = 0 V): the thresholds become 0.455 V and 0 V, so the input would have to fall all the way to ground to switch back.

The common mistake: entering the supply rails instead of the real output levels. An op-amp that only reaches 3.5 V on a 5 V supply gives an upper threshold of 2.591 V and only 0.318 V of hysteresis.

Show Work

Enter values.

Formulas

Upper Threshold
VH = (Vref·R2 + Vout_high·R1)/(R1+R2)
When output is high, this is the trip-up level.
Lower Threshold
VL = (Vref·R2 + Vout_low·R1)/(R1+R2)
When output is low, this is the trip-down level.
Hysteresis
Vhyst = (Vout_high − Vout_low)·R1/(R1+R2)
Window width; independent of Vref.
Feedback Ratio
R1/(R1+R2)
Fraction of output fed back.
Tuning Hysteresis
Increase R1/R2 = more hysteresis
Or lower R2 to widen the window.
Center
(VH + VL) / 2
Midpoint of the window; Vref sets where it sits.

History of the Schmitt Trigger

Otto Schmitt invented the trigger circuit that bears his name in 1934 while still a graduate student at Washington University in St. Louis. He was trying to solve a biological-measurement problem — detecting nerve impulses in squid axons — and needed a circuit that would fire cleanly on a slow, noisy input. His solution used two vacuum tubes with cross-coupled feedback, producing the now-classic hysteresis transfer function.

Schmitt went on to a long career in biophysics, mostly at the University of Minnesota, and is credited with coining the term "biomimetics" for engineering inspired by biology. His trigger became a standard building block of pulse and digital circuits, and logic families gained dedicated Schmitt-trigger parts such as the 7414 hex inverter.

Many microcontrollers put Schmitt-trigger buffers on their digital inputs, because slow-rising signals from switches and RC filters would otherwise produce extra edges as they cross the logic threshold. CMOS parts such as the CD40106 and 74HC14 provide the same hysteresis in a single gate.

About This Calculator

The circuit is the inverting Schmitt trigger: the signal drives the − input, R1 connects the + input to the reference Vref and R2 feeds back from the output. The tool computes VH = (Vref·R2 + Vout_high·R1)/(R1+R2), VL = (Vref·R2 + Vout_low·R1)/(R1+R2), the hysteresis between them and the centre of the window.

Make the hysteresis comfortably larger than the noise on the input. For very small signals, amplify them first and apply the hysteresis after the amplifier. If the reference comes from a resistor divider, its source resistance adds to R1. Everything runs in your browser.

Frequently Asked Questions

What is hysteresis?

The gap between the two switching thresholds. Once the output switches, the threshold moves away from the input, so noise on a slowly changing signal cannot flip the output back and forth. Without it, a noisy signal crossing a single threshold produces a burst of false edges.

How much hysteresis do I need?

More than the peak-to-peak noise at the input, with some margin. It is set by the output swing and the resistor ratio: (Vout_high − Vout_low) × R1 ÷ (R1 + R2). A 5 V swing with 10 kΩ and 100 kΩ gives 0.455 V.

Why use a reference voltage?

With the reference at 0 V and a 0 to 5 V output, the thresholds are 0.455 V and 0 V, so the input would have to reach exactly 0 V to switch back. Returning R1 to 2.5 V instead centres the window: 2.727 V and 2.273 V, with the same 0.455 V of hysteresis.

Op-amp or comparator?

A comparator is built for this job: it switches fast and its output is meant to sit at the rails. An op-amp recovers slowly from saturation and may not swing fully to the rails, so enter the output levels it actually reaches, or the thresholds will be wrong.

What about the non-inverting version?

This tool covers the inverting circuit. In the non-inverting version the signal enters through R1 to the + input and the − input sits at the reference. With a 0 V reference the thresholds are −Vout_low × R1/R2 and −Vout_high × R1/R2, so the hysteresis is (Vout_high − Vout_low) × R1/R2, a little larger than here.

How do I use the Schmitt Trigger 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.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Single-Supply Comparators

On 5 V with a 2.5 V reference, 10 kΩ and 100 kΩ give thresholds of 2.727 V and 2.273 V.

Zero-Cross Detectors

On ±12 V with 1 kΩ and 100 kΩ, the thresholds are ±0.119 V: 0.238 V of hysteresis around zero.

3.3 V Logic Inputs

A 1.65 V reference with 4.7 kΩ and 47 kΩ switches at 1.8 V and 1.5 V, cleaning up slow edges before a logic input.

Slow Sensor Signals

For a light or temperature threshold, 10 kΩ and 39 kΩ on 5 V give a 1.02 V window (3.01 V and 1.99 V), so the output does not chatter as the signal drifts.

Last updated: