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.
Explore the gain and phase of a first-order low-pass or high-pass filter at any frequency, compared with its cutoff frequency.
Choose the filter type: a low-pass filter passes low frequencies and a high-pass filter passes high frequencies.
Enter the cutoff frequency f_c and the signal frequency f with their units. Changing a unit reinterprets its number.
Enter the input amplitude in volts to see how large the output is.
Move the slider to sweep the signal from one hundredth to one hundred times the cutoff; type an exact frequency in the field.
Read the gain in decibels, the output-to-input ratio, the phase shift and the time shift, and compare them with the standard points in the table.
Copy result copies the inputs and results. Reset restores the starting example: a 1 kHz low-pass filter, a 2 kHz signal and a 1 V input.
A first-order filter has one energy-storing part, such as one capacitor or one inductor working with a resistor. Its response depends only on the ratio x = f/f_c of the signal frequency to the cutoff frequency.
A low-pass filter passes frequencies well below f_c almost unchanged and reduces higher ones. Its gain is |H| = 1/√(1 + x²) and its phase is φ = −arctan(x): the output lags the input by up to 90°.
A high-pass filter is the mirror image. Its gain is |H| = x/√(1 + x²) and its phase is φ = arctan(1/x): the output leads the input by up to 90°.
At the cutoff both types pass 1/√2 of the input, about 70.7 %, which is −3.01 dB or half the power, and the phase shift is 45°: −45° (the output lags) for a low-pass and +45° (the output leads) for a high-pass. One decade beyond the cutoff the gain has fallen by about 20 dB, so a first-order filter rolls off at 20 dB per decade (about 6 dB per octave).
Gain in decibels is G = 20 × log10|H|. The phase shift is also a time shift, Δt = φ/(360° × f); a negative Δt means the output peaks after the input.
This explorer assumes an ideal first-order response: an ideal source, no load on the output and exact parts. A load, a source resistance or part tolerance moves the cutoff. To choose R and C for a cutoff, use the RC low-pass or high-pass cutoff calculator.
What does −3 dB at the cutoff mean? The output amplitude is 70.7 % of the input, so into the same load the output would deliver half the power the input would.
Why is the phase shift 45° at the cutoff? At f = f_c the real and imaginary parts of the response are equal in size (in an RC or RL filter the resistance equals the reactance), and arctan(1) = 45°.
Does it matter whether I enter a peak or an RMS amplitude? No. The filter scales both by the same ratio, so the output is in the same measure as the input.
Is a first-order filter enough to remove a nearby frequency? Often not: a signal at twice the cutoff of a low-pass filter, or half the cutoff of a high-pass filter, is reduced by only about 7 dB (6.99 dB). Steeper filters use two or more stages.
Frequency ratio: x = f/f_c. f is the signal frequency and f_c the cutoff frequency, both in hertz.
Low-pass gain and phase: |H| = 1/√(1 + x²); φ = −arctan(x).
High-pass gain and phase: |H| = x/√(1 + x²); φ = arctan(1/x) = 90° − arctan(x).
Gain in decibels: G = 20 × log10|H| dB. At x = 1, G = −3.01 dB.
Output amplitude: Vout = |H| × Vin, in the same measure (peak or RMS) as Vin.
Time shift: Δt = φ/(360° × f) in seconds; a negative value means the output lags.
Low-pass, f_c = 1 kHz, f = 2 kHz, 1 V input: Gain −6.99 dB (Vout/Vin 0.4472), phase −63.43°, output 447.2 mV. x = 2, so |H| = 1/√5. A signal at twice the cutoff keeps almost half its amplitude.
High-pass, f_c = 1 kHz, f = 2 kHz: Gain −0.97 dB (Vout/Vin 0.8944), phase 26.57°. The same ratio x = 2 lies in the high-pass passband, so most of the signal passes and the output leads.
Low-pass, f_c = 1 kHz, f = 1 kHz, 5 V input: Gain −3.01 dB, phase −45°, output 3.536 V, time shift −125 µs. At the cutoff the output is 1/√2 of the input. A common mistake is to expect half the voltage: −3 dB is half the power, not half the voltage.
High-pass, f_c = 50 Hz, f = 60 Hz, 120 V input: Gain −2.29 dB, phase 39.81°, output 92.19 V. A cutoff just below a frequency removes little of it: a first-order filter needs about a decade of separation to cut a signal by 20 dB.
All About Circuits, Lessons in Electric Circuits vol. II, ch. 8: Low-pass filters
All About Circuits, Lessons in Electric Circuits vol. II, ch. 8: High-pass filters
OpenStax University Physics Volume 2, §15.2: Simple AC circuits
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 →Waveshare 240×240 1.28inch Round LCD Display Module, 65K RGB
When sellers / websites do not fulfill / deliver the promised goods and replace them with other comparable alternatives without intimation, it leads to ther erosion of trust on such sellers / websites. My order for Yihua 08C soldering tip cleaner (Order Id #TR66916) was substituted with a Myto Tips Cleaner MTS 08B which may be comparable but not identical. Such practices need to be curbed and better communication as well as approval regarding the same should be obtained before proceeding with a replacement. Hope to have a better experience next time. Other than that, the quality of the other items in the order was good. The speed of refund against another unavailable item was good. The choice of the delivery partner and the speed of delivery was good.
Nice audio board working as expected.
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.