FireCADCalc

Comparator with Hysteresis (Schmitt Trigger) Thresholds

Upper and lower switching thresholds and hysteresis of an inverting comparator with positive feedback, from the resistors, reference and output levels.

Inputs

Examples: Illustrative 5 V comparatorSplit supply, zero referenceNarrow band, 3.3 V

Accepted: 0.001 to 1,000,000 kΩ
Accepted: 0.001 to 1,000,000 kΩ
Accepted: -100 to 100 V
Accepted: -100 to 100 V
Accepted: -100 to 100 V

Results

The + input sits between the reference and the output, weighted by the resistors: V₊ = (V_ref R₂ + V_out R₁)/(R₁ + R₂). With the output high, the input must rise to the upper threshold to switch it; once low, it must fall to the lower threshold. The hysteresis (V_OH − V_OL) R₁/(R₁ + R₂) stops a slow or noisy signal from chattering. With an open-collector output include the pull-up resistor in R₂'s path.

Upper threshold (input rising, output goes low)2.7273V
Lower threshold (input falling, output goes high)2.2727V
Hysteresis454.55mV
Centre of the hysteresis band2.5000V

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Illustrative 5 V comparator. The inputs, in the units selected above:

InputValue
Resistor from the reference to the + input10.000 kΩ
Feedback resistor from the output to the + input100.00 kΩ
Reference voltage2.5000 V
Output high level5.0000 V
Output low level0 V

Applying the formula below gives:

ResultValue
Upper threshold (input rising, output goes low)2.7273 V
Lower threshold (input falling, output goes high)2.2727 V
Hysteresis454.55 mV
Centre of the hysteresis band2.5000 V

Open this example in the calculator and change any input.

Formula

\(V_{TH} = \frac{V_{ref}R_2 + V_{OH}R_1}{R_1 + R_2}, \quad V_{TL} = \frac{V_{ref}R_2 + V_{OL}R_1}{R_1 + R_2}, \quad V_H = \frac{(V_{OH} - V_{OL})R_1}{R_1 + R_2}\)

Variables

Symbol Meaning SI unit
\(R_1\) Resistor from the reference to the + input Ω
\(R_2\) Feedback resistor from the output to the + input Ω
\(V_{ref}\) Reference voltage V
\(V_{OH}\) Output high level V
\(V_{OL}\) Output low level V
\(V_{TH}\) Upper threshold (input rising, output goes low) V
\(V_{TL}\) Lower threshold (input falling, output goes high) V
\(V_H\) Hysteresis V
\(V_c\) Centre of the hysteresis band V

Method and standards

Schmitt trigger.

Where it is used

  • Level switches and thermostats.
  • Cleaning slow or noisy digital signals.

Common mistakes

  • Swapping R₁ and R₂.
  • Ignoring a pull-up on open-collector outputs.

Assumptions and limits

  • Ideal comparator; no input current.

References

  • Comparator with positive feedback (Schmitt trigger)

Questions and answers

How much hysteresis do I need?

More than the peak-to-peak noise on the input, typically 50–200 mV in a 5 V circuit.

Why does the centre shift away from the reference?

The output levels pull the + input; with outputs at 0 and 5 V the band centres above a 2.5 V reference set through a small R₁.

What do the defaults represent?

An illustrative 5 V comparator with a 2.5 V reference through 10 kΩ and 100 kΩ feedback.

Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Sources

Horowitz and Hill, The Art of Electronics, 3rd ed. (Cambridge, 2015)

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.