Electrical Energy Calculator
Calculate electricity use from power and duration, or constant DC voltage and current. Compare energy use over different operating times in watt-hours, kilowatt-hours and joules.
Open toolInteractive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.
Check whether an op-amp circuit's input common-mode voltage and output swing stay inside the limits you enter from the data sheet, and find the usable input range.
Choose Non-inverting or Inverting.
Enter the supply rails; use 0 V as the negative supply for a single-supply circuit.
Enter the input common-mode and output limits from the data sheet as volts from each rail.
Enter the gain, the reference voltage and the input signal's lowest and highest values.
Read whether the signal fits, the margins and the usable input range. Copy result copies labeled values; Reset restores the starting fields.
With negative feedback an op amp keeps its two inputs at the same voltage. That shared voltage, the common-mode voltage, must stay inside the range the data sheet guarantees; outside it the input stage stops working and the output is wrong even if it looks normal.
In a non-inverting stage the signal drives the non-inverting input, so the common-mode voltage moves with the signal and the whole input range must fit. In an inverting stage the non-inverting input sits at the reference, so the common-mode voltage stays at VREF whatever the signal does.
The output can only swing to within some distance of each rail, and that distance grows with load current. Data sheets give both limits as distances from the rails, which is why the same part fits on ±15 V and fails on 3.3 V.
On a single supply an inverting stage with a 0 V reference would need a negative output, which it cannot make. Moving the reference to mid-supply centres both the common mode and the output.
Limitations: the limits are the single numbers you enter; real limits change with load, temperature and supply, and rail-to-rail inputs can change offset where their two input stages cross over. The check is for DC and slow signals; it does not cover slew rate, bandwidth or input differential limits.
Allowed common mode: CML = VS− + hCL, CMH = VS+ − hCH.
Allowed output: OL = VS− + hOL, OH = VS+ − hOH.
Non-inverting: VCM = Vin; Vout = VREF + G × (Vin − VREF).
Inverting: VCM = VREF; Vout = VREF − G × (Vin − VREF).
Margins: low = needed minimum − allowed minimum; high = allowed maximum − needed maximum; negative means it does not fit.
5 V supply, inputs 0 V to 1.5 V below VS+, output 0.1 V from each rail, non-inverting gain 2, input 0–2 V: Common mode fits; output needs 0–4 V and is 0.1 V short at the low end; usable input 0.05–2.45 V. A rail-to-rail output still cannot reach 0 V.
Same op amp, inverting gain 1, VREF 0 V, input 0–1 V: Output 0 to −1 V: 1.1 V below the low limit. Common mistake: a single-supply inverting stage needs a reference above 0 V.
Same op amp, inverting gain 1, VREF 2.5 V, input 0.5–4.5 V: Output 0.5–4.5 V, margins 0.4 V; common mode 2.5 V, margins 2.5 V and 1 V. Usable input 0.1–4.9 V.
±15 V, inputs 2 V from each rail, output 1.5 V from each rail, non-inverting gain 10, input ±1.2 V: Fits, smallest margin 1.5 V; usable input ±1.35 V. Output limits bind first.
5 V, inputs 0.1 V beyond each rail (headroom −0.1 V), output 0.1 V, follower, input 0–5 V: Common mode fits with 0.1 V margins; output 0.1 V short at both ends. Boundary: a rail-to-rail input does not make a rail-to-rail output.
TI: Understanding Operational Amplifier Specifications (SLOA011B)
TI: Handbook of Operational Amplifier Applications (SBOA092B)
TI: Single-supply 2nd-order MFB high-pass filter circuit (SBOA230)
TI: Three Op Amp Instrumentation Amplifier Circuit (SBOA282A)
Available now
Calculate electricity use from power and duration, or constant DC voltage and current. Compare energy use over different operating times in watt-hours, kilowatt-hours and joules.
Open tool →Available now
Add up to 20 resistors in series using Ω, kΩ or MΩ for circuit analysis and electricity calculations, with a diagram and running total.
Open tool →Available now
Convert absolute temperatures between Celsius, Fahrenheit and kelvin.
Open tool →Given the fact that this was my first purchase and I made it thinking I was buying genuine Yihua products, this has been a setback. I received a lesser known OEM brand called MYTO and while both the products seem to be similar from appearance, my real contention is the quality and quantity of the brass wool. On top of that not informing the customer about the unavailability of the Yihua product and instead sending a product from a different brand is also antagonising. Henceforth, I might just have to think twice before ordering from ThinkRobotics.
TOF MINIF Range Sensor - UART TOF Time-of-Flight Laser Range Sensor
We are disappointed with our recent order experience. We clearly communicated our requirement for 433 MHz antennas on WhatsApp, but the issue remains unresolved. We have been following up for more than 10 days and are still waiting for a proper refund resolution.
As a regular B2B customer, we expected better support. This experience has affected our trust in ThinkRobotics, and we may have to consider other suppliers for future purchases. We request a fair and prompt refund.
Anodised Aluminium Cup Head Washers (Pack of 10)