{
  "id": "comparator-hysteresis",
  "slug": "comparator-hysteresis-calculator",
  "url": "https://electronics.tools/tools/comparator-hysteresis-calculator/",
  "name": "Comparator Hysteresis Calculator",
  "group": "amp-timing",
  "summary": "Non-inverting R1/R2 = 1/10, VREF 2.5 V, 0–5 V is VTH 2.73 V and VTL 2.25 V.",
  "formulas": [
    {
      "id": "vth-ni",
      "label": "Non-inverting upper threshold",
      "plain": "VTH = VREF (1 + R1/R2) − VOL (R1/R2)",
      "mathml": "<math display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\" aria-label=\"VTH = VREF (1 + R1/R2) − VOL (R1/R2)\"><mrow><msub><mi>V</mi><mtext>TH</mtext></msub><mo>=</mo><msub><mi>V</mi><mtext>REF</mtext></msub><mrow><mo>(</mo><mrow><mn>1</mn><mo>+</mo><msub><mi>R</mi><mn>1</mn></msub><mo>/</mo><msub><mi>R</mi><mn>2</mn></msub></mrow><mo>)</mo></mrow><mo>-</mo><msub><mi>V</mi><mtext>OL</mtext></msub><mrow><mo>(</mo><mrow><msub><mi>R</mi><mn>1</mn></msub><mo>/</mo><msub><mi>R</mi><mn>2</mn></msub></mrow><mo>)</mo></mrow></mrow></math>",
      "symbols": [
        "VTH",
        "VREF",
        "R1",
        "R2",
        "VOL"
      ],
      "sources": [
        "schmitt"
      ]
    },
    {
      "id": "vtl-ni",
      "label": "Non-inverting lower threshold",
      "plain": "VTL = VREF (1 + R1/R2) − VOH (R1/R2)",
      "mathml": "<math display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\" aria-label=\"VTL = VREF (1 + R1/R2) − VOH (R1/R2)\"><mrow><msub><mi>V</mi><mtext>TL</mtext></msub><mo>=</mo><msub><mi>V</mi><mtext>REF</mtext></msub><mrow><mo>(</mo><mrow><mn>1</mn><mo>+</mo><msub><mi>R</mi><mn>1</mn></msub><mo>/</mo><msub><mi>R</mi><mn>2</mn></msub></mrow><mo>)</mo></mrow><mo>-</mo><msub><mi>V</mi><mtext>OH</mtext></msub><mrow><mo>(</mo><mrow><msub><mi>R</mi><mn>1</mn></msub><mo>/</mo><msub><mi>R</mi><mn>2</mn></msub></mrow><mo>)</mo></mrow></mrow></math>",
      "symbols": [
        "VTL",
        "VREF",
        "R1",
        "R2",
        "VOH"
      ],
      "sources": [
        "schmitt"
      ]
    },
    {
      "id": "vhys",
      "label": "Window",
      "plain": "Δ = VTH − VTL = (VOH − VOL) (R1/R2) non-inverting",
      "mathml": "<math display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\" aria-label=\"Δ = VTH − VTL = (VOH − VOL) (R1/R2) non-inverting\"><mrow><mi>Δ</mi><mo>=</mo><msub><mi>V</mi><mtext>TH</mtext></msub><mo>-</mo><msub><mi>V</mi><mtext>TL</mtext></msub></mrow></math>",
      "symbols": [
        "Vhys",
        "VTH",
        "VTL"
      ],
      "sources": [
        "schmitt"
      ]
    }
  ],
  "variables": [
    {
      "symbol": "top",
      "name": "Topology",
      "unit": "1",
      "role": "input",
      "precision": {
        "sig": 1
      },
      "default": "non-inverting",
      "urlParam": "top"
    },
    {
      "symbol": "out",
      "name": "Output type",
      "unit": "1",
      "role": "input",
      "precision": {
        "sig": 1
      },
      "default": "open-collector",
      "urlParam": "out"
    },
    {
      "symbol": "VREF",
      "name": "Reference",
      "unit": "V",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": 2.5,
      "urlParam": "vref"
    },
    {
      "symbol": "R1",
      "name": "R1",
      "unit": "Ω",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "range": {
        "min": 0
      },
      "default": 1000,
      "urlParam": "r1"
    },
    {
      "symbol": "R2",
      "name": "Feedback R2",
      "unit": "Ω",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "range": {
        "min": 0
      },
      "default": 10000,
      "urlParam": "r2"
    },
    {
      "symbol": "Vpull",
      "name": "Pull-up rail",
      "unit": "V",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": 5,
      "urlParam": "vpull"
    },
    {
      "symbol": "Rpull",
      "name": "Pull-up",
      "unit": "Ω",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "range": {
        "min": 0
      },
      "default": 4700,
      "urlParam": "rpull"
    },
    {
      "symbol": "VOH",
      "name": "High output",
      "unit": "V",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": 5,
      "urlParam": "voh"
    },
    {
      "symbol": "VOL",
      "name": "Low output",
      "unit": "V",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": 0.2,
      "urlParam": "vol"
    },
    {
      "symbol": "Iol",
      "name": "Load current (optional)",
      "unit": "A",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": "",
      "urlParam": "iol"
    },
    {
      "symbol": "Cload",
      "name": "Load C (optional)",
      "unit": "F",
      "role": "input",
      "precision": {
        "sig": 4
      },
      "default": "",
      "urlParam": "cload"
    },
    {
      "symbol": "VTH",
      "name": "Upper threshold",
      "unit": "V",
      "role": "output",
      "precision": {
        "sig": 4
      }
    },
    {
      "symbol": "VTL",
      "name": "Lower threshold",
      "unit": "V",
      "role": "output",
      "precision": {
        "sig": 4
      }
    },
    {
      "symbol": "Vhys",
      "name": "Hysteresis window",
      "unit": "V",
      "role": "output",
      "precision": {
        "sig": 4
      }
    },
    {
      "symbol": "ratio",
      "name": "R1/R2",
      "unit": "1",
      "role": "output",
      "precision": {
        "sig": 4
      }
    }
  ],
  "examples": [
    {
      "id": "ni-5v-oc",
      "title": "Non-inverting open-collector, 2.5 V, 1 kΩ/10 kΩ",
      "input": [
        {
          "symbol": "top",
          "value": "non-inverting",
          "unit": "1",
          "display": "non-inverting"
        },
        {
          "symbol": "out",
          "value": "open-collector",
          "unit": "1",
          "display": "open-collector"
        },
        {
          "symbol": "VREF",
          "value": 2.5,
          "unit": "V",
          "display": "2.5 V"
        },
        {
          "symbol": "R1",
          "value": 1000,
          "unit": "Ω",
          "display": "1 kΩ"
        },
        {
          "symbol": "R2",
          "value": 10000,
          "unit": "Ω",
          "display": "10 kΩ"
        },
        {
          "symbol": "Vpull",
          "value": 5,
          "unit": "V",
          "display": "5 V"
        },
        {
          "symbol": "Rpull",
          "value": 4700,
          "unit": "Ω",
          "display": "4.7 kΩ"
        },
        {
          "symbol": "VOL",
          "value": 0.2,
          "unit": "V",
          "display": "0.2 V"
        }
      ],
      "output": [
        {
          "symbol": "VTH",
          "value": 2.73,
          "unit": "V",
          "display": "2.73 V"
        },
        {
          "symbol": "VTL",
          "value": 2.25,
          "unit": "V",
          "display": "2.25 V"
        },
        {
          "symbol": "Vhys",
          "value": 0.48,
          "unit": "V",
          "display": "0.48 V"
        }
      ],
      "computedBy": "comparatorHysteresis"
    }
  ],
  "sources": [
    {
      "title": "Schmitt trigger (Wikipedia, textbook identity)",
      "url": "https://en.wikipedia.org/wiki/Schmitt_trigger",
      "retrieved": "2026-11-29"
    },
    {
      "title": "Texas Instruments, LM393 Dual Differential Comparators (open-collector VOL)",
      "url": "https://www.ti.com/lit/ds/symlink/lm393.pdf",
      "retrieved": "2026-11-29"
    }
  ],
  "datePublished": "2026-11-29T00:00:00+08:00",
  "dateModified": "2026-11-29T00:00:00+08:00",
  "author": {
    "name": "Jasper",
    "url": "https://electronics.tools/about/#jasper"
  },
  "relatedTools": [
    "https://electronics.tools/tools/switch-debounce-calculator/",
    "https://electronics.tools/tools/op-amp-gain-calculator/",
    "https://electronics.tools/tools/inverting-op-amp-calculator/"
  ]
}
