The foundational AC formula for determining the exact voltage at any specific microsecond in an alternating current circuit is the instantaneous voltage equation: v(t) = Vpeak × sin(2πft + θ). This formula applies strictly to pure, undistorted sine waves in steady-state linear circuits. If you are sizing capacitors for a rectifier, debugging a phase-shifted motor drive, or calculating the exact trip threshold of an overvoltage protector, you cannot rely on the RMS value printed on the nameplate; you must calculate the instantaneous peak.
The Core AC Formula and Symbol Definitions
To use the formula correctly, every variable must be tracked with its proper SI unit. A mismatch in units—particularly between radians and degrees—is the primary reason calculations fail on the bench.
| Symbol | Parameter | Standard Unit | Practical Notes |
|---|---|---|---|
v(t) |
Instantaneous voltage at time t | Volts (V) | Can be positive or negative depending on the half-cycle. |
Vpeak |
Maximum peak voltage amplitude | Volts (V) | For 120V RMS mains, this is ~169.7V. Never use the RMS value here. |
f |
Frequency of the AC cycle | Hertz (Hz) | 60 Hz in North America, 50 Hz in Europe/UK/AU. |
t |
Time elapsed from the zero-crossing | Seconds (s) | Usually tracked in milliseconds (ms) or microseconds (μs) in practice. |
θ |
Phase angle (shift) | Radians (rad) | Represents a time delay/advance. Set to 0 for basic grid voltage. |
Deriving the RMS Equivalent from the Sine Wave
Why do we say a US outlet is 120V when the Vpeak is nearly 170V? The Root Mean Square (RMS) value is derived by squaring the instantaneous AC formula, finding the mean (average) of that squared function over one full cycle, and then taking the square root.
For a pure sine wave, the integral of sin2(x) over a full period yields a factor of 1/2. Taking the square root of 1/2 gives us 1/√2 (approximately 0.707). Therefore, the relationship is:
VRMS = Vpeak / √2 or Vpeak = VRMS × √2
This derivation only holds true for pure sine waves. If you are measuring the output of a modified sine wave inverter or a dimmer circuit with chopped waveforms, this 0.707 multiplier is invalid, and you must use a True-RMS multimeter (like the Fluke True-RMS series) to capture the actual heating equivalent of the voltage.
Rearranged Forms for Circuit Debugging
On the bench, you rarely need to find v(t) from scratch. Usually, you have an oscilloscope trace and need to back-calculate a timing parameter or phase shift. Here are the algebraically rearranged forms of the core AC formula:
- Solve for Peak Voltage:
Vpeak = v(t) / sin(2πft + θ)
Use when: You know the voltage at a specific time and need to find the waveform's maximum amplitude. - Solve for Frequency:
f = [arcsin(v(t) / Vpeak) - θ] / (2πt)
Use when: Diagnosing generator droop or grid instability where the 60Hz nominal is drifting. - Solve for Time:
t = [arcsin(v(t) / Vpeak) - θ] / (2πf)
Use when: Calculating the exact firing delay angle (in milliseconds) for a TRIAC or SCR phase-control circuit. - Solve for Phase Angle:
θ = arcsin(v(t) / Vpeak) - 2πft
Use when: Measuring the phase shift between voltage and current in an inductive motor load to calculate power factor.
Worked Examples with Strict Unit Tracking
Let's apply the formula to two real-world scenarios. Pay close attention to the unit conversions, particularly converting milliseconds to seconds and ensuring the calculator is in radian mode.
Problem 1: Finding Instantaneous Voltage on US Mains
Scenario: You are designing a snubber circuit for a relay switching a standard US 120V RMS, 60Hz AC line. You need to know the exact instantaneous voltage 5 milliseconds (ms) after the zero-crossing. Assume a phase angle (θ) of 0.
- Convert RMS to Peak:
Vpeak = 120V × √2 = 169.705V - Convert Time to Seconds:
t = 5 ms = 0.005 s - Calculate the Angular Argument (in Radians):
2 × π × 60 Hz × 0.005 s = 0.6π radians
(Note: 0.6π radians is exactly 108°) - Evaluate the Sine Function:
sin(0.6π) ≈ 0.95105 - Calculate Final Voltage:
v(0.005) = 169.705V × 0.95105 = 161.4V
Answer: At exactly 5ms, the instantaneous voltage is 161.4V. It has not yet reached the 169.7V peak, which occurs at 4.16ms (a quarter of the 16.67ms cycle).
Problem 2: Calculating TRIAC Firing Time on EU Mains
Scenario: You are programming an ESP32 to fire a TRIAC for a light dimmer on a 230V RMS, 50Hz European mains supply. The dimming algorithm requires the TRIAC to trigger exactly when the instantaneous voltage reaches 150V on the first positive slope. How many milliseconds after the zero-crossing must the GPIO pin go high?
- Convert RMS to Peak:
Vpeak = 230V × √2 = 325.269V - Set up the Rearranged Time Formula:
t = arcsin(v(t) / Vpeak) / (2πf)(since θ = 0) - Calculate the Sine Ratio:
150V / 325.269V = 0.46115 - Find the Inverse Sine (Arcsin) in Radians:
arcsin(0.46115) = 0.4793 radians - Calculate Time in Seconds:
t = 0.4793 / (2 × π × 50) = 0.4793 / 314.159 = 0.001525 seconds - Convert to Milliseconds:
0.001525 s × 1000 = 1.525 ms
Answer: The ESP32 must trigger the TRIAC 1.525 ms after the zero-crossing detection interrupt fires.
Common Unit Mistakes and Realistic Magnitudes
When the math on your bench doesn't match your oscilloscope trace, it is almost always due to one of these three errors:
2πft inherently outputs in radians. If your calculator or code (like standard C++ sin() functions) is set to degrees, the formula breaks entirely. If you must use degrees, the formula changes to v(t) = Vpeak × sin(360ft + θ). Never mix the two.
Confusing RMS with Peak: A realistic magnitude check will save your components. If you are working with standard North American 120V AC, the peak voltage is ~170V. If your formula outputs a maximum of 120V, you forgot to multiply by √2. Similarly, for 230V systems, the peak is ~325V. Capacitors rated for 200V will explode on a 120V AC line if placed directly across it without rectification step-down, because they must withstand the 170V peak, not the 120V RMS.
Ignoring Phase Shift in Inductive Loads: The formula assumes θ = 0 for a purely resistive load (like a heater). If you are measuring current through an induction motor, the current waveform lags the voltage waveform. If you use the voltage time t to calculate the current i(t) without adding the phase angle θ (where θ = arccos(Power Factor)), your calculated instantaneous current will be completely wrong.
Frequently Asked Questions
How does the AC formula change for non-sine waveforms like square waves?
The standard instantaneous formula v(t) = Vpeak × sin(2πft) only applies to pure sine waves. For a symmetrical square wave (like the output of a basic UPS or a 555 timer astable circuit), the voltage is simply +Vpeak for the first half of the period and -Vpeak for the second half. Furthermore, for a perfect square wave, the RMS voltage is exactly equal to the peak voltage (VRMS = Vpeak), meaning the √2 derivation factor is discarded. For triangle waves, the RMS factor is √3 instead of √2.
Why does my multimeter read 120V when the AC formula peak is 170V?
Standard digital multimeters are calibrated to display the RMS (Root Mean Square) value, not the peak value. RMS is the 'heating equivalent' DC voltage—it tells you that a 120V AC sine wave will deliver the exact same power to a resistive heater as a 120V DC battery. As noted by Electronics Tutorials, the meter internally samples the waveform, calculates the RMS, and displays that normalized number because it is the standard for power calculations and wire sizing.
What happens to the AC formula if the frequency drops during a brownout?
During a severe grid brownout or when running an overloaded portable generator, the frequency f can drop (e.g., from 60Hz to 58Hz). In the formula, a lower f stretches the sine wave, meaning it takes longer to reach the peak voltage. While the peak amplitude Vpeak might also sag due to generator voltage regulator limitations, the time-dependent variable t for any specific phase angle will increase. This is why transformerless power supplies and zero-crossing SSRs can experience timing faults or overheating during grid instability, as their internal timing constants are hardcoded for exactly 60.00Hz.






