The fundamental equation of AC (alternating current) voltage defines the instantaneous potential difference at any exact microsecond in time. Unlike DC, which sits at a static value, AC continuously cycles. The standard equation of AC voltage is:

v(t) = Vpeak × sin(2πft + φ)

Where v(t) is the instantaneous voltage, Vpeak is the maximum amplitude, f is frequency, t is time, and φ is the phase angle. This formula is the bedrock for calculating power delivery, sizing capacitors for power factor correction, and programming digital sampling in microcontrollers like the ESP32 or Arduino.

The Core Equation of AC and Parameter Definitions

To use the equation of AC correctly, you must understand the physical reality behind every symbol. A common failure point for hobbyists and students is confusing RMS (Root Mean Square) values with Peak values. The multimeter on your bench reads RMS; the equation demands Peak.

Symbol Parameter Standard Unit Realistic Magnitude (US 120V Grid)
v(t) Instantaneous voltage at time t Volts (V) -170 V to +170 V
Vpeak Peak amplitude (Zero-to-Peak) Volts (V) 170 V (derived from 120V × √2)
f Frequency of the waveform Hertz (Hz) 60 Hz (North America)
t Elapsed time from zero-crossing Seconds (s) 0 to 0.0167 s (one full cycle)
φ Phase shift / angle offset Radians (rad) 0 to 2π (or 0° to 360°)

Because the equation relies on angular velocity, you will frequently see the term f replaced by the Greek letter omega (ω), representing angular frequency in radians per second. For a 60 Hz grid, ω = 2 × π × 60 ≈ 377 rad/s. According to Georgia State University's HyperPhysics, using angular frequency simplifies the calculus when deriving current through inductors and capacitors.

Global Grid Parameters for the Equation of AC

When applying this formula to real-world mains power, your inputs change based on geography. Here are the exact peak values you must plug into Vpeak and f depending on your region:

Region Nominal RMS Required Vpeak Input Required f Input Cycle Time (1/f)
North America 120 V 169.7 V 60 Hz 16.67 ms
Europe / UK / AU 230 V 325.3 V 50 Hz 20.00 ms
North America (Split-Phase) 240 V 339.4 V 60 Hz 16.67 ms
Japan (East) 100 V 141.4 V 50 Hz 20.00 ms

Rearranged Forms: Solving for Hidden Variables

On the workbench, you rarely need to find v(t). Usually, you have an oscilloscope reading and need to extract a hidden variable—like the exact time delay (phase shift) caused by an inductive motor load. Here are the algebraic rearrangements of the equation of AC, solving for each variable:

  • Solving for Peak Voltage:
    Vpeak = v(t) / sin(2πft + φ)
    Use case: Calculating the required DC bus voltage for an inverter based on a sampled AC output point.
  • Solving for Frequency:
    f = [ arcsin(v(t) / Vpeak) - φ ] / (2πt)
    Use case: Determining the exact grid frequency drift from a single snapshot measurement (though zero-crossing counters are preferred in practice).
  • Solving for Time:
    t = [ arcsin(v(t) / Vpeak) - φ ] / (2πf)
    Use case: Programming the exact microsecond delay for a TRIAC firing circuit in a light dimmer.
  • Solving for Phase Angle:
    φ = arcsin(v(t) / Vpeak) - 2πft
    Use case: Calculating the power factor angle of a compressor motor by comparing voltage and current waveforms.

Critical Assumptions and Unit Traps That Break the Math

The equation of AC is elegant, but it is a mathematical model that makes strict assumptions about the physical world. If your circuit violates these assumptions, the formula will output garbage data.

When the Formula Applies (and When It Fails)

This equation assumes a pure, steady-state sinusoidal waveform. It applies perfectly to utility grid power and high-quality pure sine wave inverters (like the Victron MultiPlus). It completely fails when applied to:

  • Modified Sine Wave Inverters: These output stepped square waves. The equation of AC cannot model the flat tops and vertical steps; you must use Fourier series analysis instead.
  • VFD (Variable Frequency Drive) Outputs: VFDs use PWM (Pulse Width Modulation) to simulate AC. The instantaneous voltage is rapidly switching between 0V and the DC bus voltage (e.g., 650V), not smoothly tracking a sine wave.
  • Heavy Harmonic Distortion: If a circuit has massive non-linear loads (like uncorrected LED drivers or switching power supplies), the waveform is distorted. As noted in All About Circuits, Total Harmonic Distortion (THD) warps the sine wave, meaning the basic equation will yield incorrect instantaneous values.

The #1 Unit Mistake: Radians vs. Degrees

The most common reason students and engineers get wildly incorrect answers from the equation of AC is calculator mode. The term ft inherently outputs radians. If your calculator is set to Degrees, the sine function will evaluate incorrectly.

Warning: If you are calculating 2π × 60 × 0.005, the result is 1.884 radians. If your calculator is in Degree mode, sin(1.884°) = 0.032. If your calculator is in Radian mode, sin(1.884 rad) = 0.951. Using the wrong mode will result in a 96% error in your voltage calculation. Always verify your calculator is in RAD mode before evaluating AC equations, or manually convert radians to degrees by multiplying the argument by (180/π).

Worked Examples with Strict Unit Tracking

Let's apply the equation of AC to two real-world bench scenarios. We will track every unit to ensure dimensional consistency.

Problem 1: Finding Instantaneous Voltage for Microcontroller Sampling

Scenario: You are writing an Arduino sketch to sample a 120V RMS, 60 Hz North American grid waveform using a step-down transformer and an op-amp biasing circuit. You need to know the exact theoretical voltage at t = 3.5 milliseconds after the zero-crossing, assuming a phase angle (φ) of 0.

Step 1: Identify and convert knowns to standard SI units.

  • VRMS = 120 V. Convert to Peak: Vpeak = 120 × √2 = 169.705 V.
  • f = 60 Hz.
  • t = 3.5 ms. Convert to seconds: t = 0.0035 s.
  • φ = 0 rad.

Step 2: Calculate the angular argument (ensure Radian mode).

  • Argument = 2 × π × f × t + φ
  • Argument = 2 × 3.14159 × 60 Hz × 0.0035 s + 0
  • Argument = 1.31946 radians.

Step 3: Evaluate the sine function and multiply by Peak.

  • sin(1.31946 rad) = 0.96857
  • v(t) = 169.705 V × 0.96857
  • v(t) = 164.37 V

Sanity Check: 3.5 ms is slightly past the peak of a 60Hz wave (which peaks at 4.16 ms, or 1/4th of the 16.67ms cycle). A value of 164V is very close to the 169.7V peak, so the magnitude is realistic.

Problem 2: Calculating Phase Shift Time Delay for a TRIAC Dimmer

Scenario: You are designing a firmware routine for an ESP32-based light dimmer controlling a 230V RMS, 50 Hz European lighting circuit. The dimmer works by waiting for the zero-crossing, delaying for time t, and then firing a TRIAC. You want the TRIAC to fire exactly when the instantaneous voltage reaches 250V on the rising edge. How many milliseconds must the ESP32 delay?

Step 1: Identify and convert knowns.

  • VRMS = 230 V. Convert to Peak: Vpeak = 230 × √2 = 325.27 V.
  • Target v(t) = 250 V.
  • f = 50 Hz.
  • φ = 0 rad (we are measuring time from the zero-crossing).

Step 2: Rearrange the equation of AC to solve for t.

  • v(t) = Vpeak × sin(2πft)
  • sin(2πft) = v(t) / Vpeak
  • ft = arcsin(v(t) / Vpeak)
  • t = arcsin(v(t) / Vpeak) / (2πf)

Step 3: Plug in values and calculate (Radian mode!).

  • Ratio = 250 V / 325.27 V = 0.76859
  • arcsin(0.76859) = 0.87586 radians
  • Denominator = 2 × π × 50 Hz = 314.159 rad/s
  • t = 0.87586 rad / 314.159 rad/s = 0.002788 seconds
  • t = 2.788 milliseconds

Sanity Check: A 50Hz wave has a 20ms total cycle, meaning the rising edge takes 10ms to go from 0V to 325V. Firing at 250V happens late in the rising edge. 2.788ms seems too short—wait, let's re-verify. 0V to Peak is 5ms (1/4 of 20ms). At 2.788ms, the wave is past the halfway point in time, and sine curves rise steeply early on and flatten near the peak. Reaching 76% of peak voltage at roughly 55% of the quarter-cycle time (2.78/5.0) is mathematically sound due to the convex shape of the sine function near the origin.

By strictly adhering to the equation of AC, tracking units from RMS to Peak, and maintaining calculator discipline with radians, you can accurately model, sample, and control alternating current systems on the bench.