Calculators / Circuit Tolerance & Monte Carlo Calculator

Circuit Tolerance & Monte Carlo Calculator

Check divider, LED, ideal RC and op-amp gain tolerances. Compare worst-case ranges with seeded independent uniform Monte Carlo samples.

Inputs

Try the prefilled example, or enter your own values.

Result

Calculate to see the result and worked steps. Changing an input clears the previous result.

How to use

  1. Choose divider, LED, ideal RC or op-amp gain. Enter independent parameter tolerances; use 0% for an exact value.
  2. In divider mode, set R1/R2 tolerances and an optional load with its own tolerance. In LED mode, enter nominal/minimum/maximum Vf and resistor tolerance.
  3. Compare guaranteed model bounds first. Optional Monte Carlo uses 100–20,000 independent uniform samples and a saved seed; its sampled percentiles do not guarantee real-world yield.

Formula and assumptions

Divider output bounds: RC: fc = 1/(2πRC), τ=RC. Op-amp gain: −Rf/Rg or 1+Rf/Rg. Divider: evaluate independent corners in Vin × (R2 ∥ RL)/(R1 + R2 ∥ RL). LED: I = max(Vs − nVf, 0)/R; PR = max(Vs − nVf, 0)²/R.

Independent rectangular parameter bounds, ideal DC resistors, and fixed-Vf LED corners. These are deterministic worst-case limits, not statistical confidence intervals. Excludes temperature drift, aging, and correlated tolerances. Optional uniform Monte Carlo is an assumed distribution, not manufacturer statistics. RC is unloaded; op-amp gain assumes linear operation.

Sources

Worked example

A 5 V divider with two 10 kΩ resistors, each ±5%, ranges from 2.375 V to 2.625 V without a load. For an exact 5 V supply, a 330 Ω ±5% resistor and Vf = 1.8–2.2 V give about 8.081–10.21 mA for one LED.

Common mistakes

Do not add resistor percentages to guess divider output error. Divider output and source current are bounded here; individual divider-resistor peak powers are not inferred from corner values. LED peak dissipation is not a rated wattage recommendation.

Continue your circuit