The fundamental equation for period and frequency is T = 1 / f (or conversely, f = 1 / T). Period (T) is measured in seconds (s) and represents the time required for one complete cycle, while frequency (f) is measured in Hertz (Hz) and represents the number of cycles occurring per second. This inverse relationship is the bedrock of AC circuit analysis, digital PWM generation, and signal processing.
The Core Equation for Period and Frequency
At the bench, whether you are analyzing a 60 Hz utility sine wave or debugging a 20 kHz microcontroller PWM signal, the relationship between time and cycles remains strictly inverse. The foundational formula is expressed as:
T = 1 / f
Below is the definitive symbol table defining every variable in the standard and angular forms of this relationship.
| Symbol | Name | SI Unit | Definition |
|---|---|---|---|
T |
Period | Seconds (s) | The duration of one complete, repeating cycle of a waveform. |
f |
Frequency | Hertz (Hz) | The number of complete cycles that occur in one second. (1 Hz = 1 s⁻¹) |
ω |
Angular Frequency | Radians per second (rad/s) | The rate of change of the phase angle in a sinusoidal waveform. |
π |
Pi | Dimensionless | Mathematical constant (≈ 3.14159), representing half a cycle in radians. |
When the Formula Applies and Its Assumptions
The equation T = 1 / f applies strictly to periodic signals—waveforms that repeat their exact shape over identical time intervals. This includes pure sine waves, ideal square waves, and stable sawtooth ramps.
Core Assumptions:
- Stationary Frequency: The formula assumes the frequency is constant over the measurement window. It does not apply directly to swept signals (chirps), FM-modulated carriers, or unstable oscillators experiencing severe jitter without calculating an average or instantaneous period.
- Ideal Cycle Repetition: It assumes cycle N is identical to cycle N+1. In real-world switching power supplies or noisy AC mains, you are often calculating the fundamental period, ignoring high-frequency transient ringing superimposed on the waveform.
For a deeper look at how these periodic assumptions apply to complex AC waveforms, refer to the AC Waveforms chapter in the All About Circuits textbook.
Rearranged Forms and Angular Variants
Depending on what your oscilloscope, function generator, or microcontroller datasheet requires, you will need to isolate different variables. Here is the complete list of rearranged forms solving for each parameter:
- Solving for Frequency:
f = 1 / T - Solving for Period:
T = 1 / f - Solving for Angular Frequency (from f):
ω = 2πf - Solving for Angular Frequency (from T):
ω = 2π / T - Solving for Frequency (from ω):
f = ω / 2π - Solving for Period (from ω):
T = 2π / ω
Engineering Note: Angular frequency (ω) is heavily used in AC impedance calculations (e.g., inductive reactance X_L = ωL) because it eliminates the need to repeatedly multiply by 2π when working with derivatives and integrals of sine waves. The Georgia State University HyperPhysics portal provides excellent derivations on why radians per second are preferred over Hertz in differential circuit equations.
Worked Examples with Unit Tracking
Abstract formulas cause mistakes on the bench. Tracking units through every step prevents catastrophic configuration errors in microcontrollers and power electronics. Below are two solved problems demonstrating strict unit tracking.
Problem 1: North American Mains AC Period
Scenario: You are designing a zero-crossing detector circuit for a North American utility grid. The nominal grid frequency is 60 Hz. What is the exact period of one full cycle, and what is the time between consecutive zero-crossings (half-period)?
- Identify knowns and convert to base SI units:
f = 60 Hz. Since1 Hz = 1 s⁻¹, we writef = 60 s⁻¹. - Select the formula:
T = 1 / f - Substitute and solve for full period:
T = 1 / 60 s⁻¹ = 0.01666... s - Convert to practical engineering units:
T = 16.67 ms(milliseconds). - Calculate half-period (zero-crossing interval):
T_half = T / 2 = 16.67 ms / 2 = 8.33 ms.
Result: The full period is 16.67 ms, and your zero-crossing detector will trigger every 8.33 ms.
Problem 2: ESP32 Microcontroller PWM Frequency
Scenario: You are configuring the LEDC peripheral on an ESP32-WROOM-32 to drive a MOSFET for a DC motor. Your timing calculations dictate a PWM period of 50 μs (microseconds) to avoid audible switching whine. What frequency must you program into the ledc_timer_config_t struct?
- Identify knowns and convert to base SI units:
T = 50 μs. The micro (μ) prefix means 10⁻⁶. Therefore,T = 50 × 10⁻⁶ s. - Select the formula:
f = 1 / T - Substitute and solve:
f = 1 / (50 × 10⁻⁶ s)
f = 1 / 0.000050 s
f = 20,000 s⁻¹ - Convert to standard frequency units:
Since1 s⁻¹ = 1 Hz,f = 20,000 Hz. Dividing by 1,000 yieldsf = 20 kHz.
Result: You must set the frequency parameter to 20,000 Hz. (For context on how the ESP32 handles these timer configurations, consult the official ESP-IDF LEDC API documentation).
Common Unit Mistakes and Realistic Magnitudes
Which Unit Mistakes Break the Math?
The most common reason a calculated frequency or period fails in practice is a prefix translation error. Watch out for these specific traps:
- The Millisecond Trap: Entering
T = 20into a calculator when you meant 20 ms. If you don't explicitly type20e-3, the calculator assumes 20 seconds, yielding a frequency of 0.05 Hz instead of 50 Hz. - RPM vs. Hz Confusion: Mechanical tachometers read in Revolutions Per Minute (RPM). The equation
T = 1 / frequires Hertz. You must divide RPM by 60 to get Hz before applying the formula. (e.g., 3600 RPM = 60 Hz = 16.67 ms period). - Angular vs. Standard Frequency: Plugging
ω(rad/s) directly intoT = 1 / f. If your scope reads 377 rad/s (the angular frequency of 60 Hz mains), calculating1 / 377gives 2.65 ms, which is wrong. You must useT = 2π / ω.
What a Realistic Answer Magnitude Looks Like
Developing an intuition for realistic magnitudes helps you instantly spot decimal-place errors. If you calculate the period of a wall outlet and get 1.6 seconds, you know immediately you missed a milli- prefix.
| Application Domain | Typical Frequency (f) |
Typical Period (T) |
Sanity Check Benchmark |
|---|---|---|---|
| Utility Mains (US) | 60 Hz | 16.67 ms | Human perception limit (flicker) |
| Utility Mains (EU/UK) | 50 Hz | 20.0 ms | Standard industrial motor base |
| Audio Band (Human Hearing) | 20 Hz to 20 kHz | 50 ms down to 50 μs | PWM motor whine threshold |
| Switching Power Supplies (SMPS) | 100 kHz to 2 MHz | 10 μs down to 500 ns | Beyond audible range, reduces inductor size |
| Wi-Fi / RF (2.4 GHz Band) | 2.4 GHz (2.4 × 10⁹ Hz) | 0.41 ns (410 ps) | Requires transmission line theory |
Frequently Asked Questions
What is the equation for period and frequency in a 50 Hz system?
In a 50 Hz system (standard in Europe, the UK, Australia, and much of Asia), the frequency f = 50 Hz. Using the equation T = 1 / f, the period is T = 1 / 50 = 0.02 seconds, or exactly 20 milliseconds. Consequently, the time between positive zero-crossings (the half-cycle) is exactly 10 ms. This 20 ms full-period benchmark is critical when sizing timing capacitors for 50 Hz AC-to-DC rectifier filters.
How do you calculate frequency from an oscilloscope period measurement?
To calculate frequency from an oscilloscope, first measure the period (T) using the scope's cursors. Place Cursor A on a rising zero-crossing and Cursor B on the very next rising zero-crossing to capture exactly one full cycle. Read the delta-time (ΔT) value from the screen; this is your period in seconds. Then, apply the rearranged equation f = 1 / T. For example, if your cursors read ΔT = 2.5 μs (2.5 × 10⁻⁶ s), the frequency is 1 / 0.0000025 = 400,000 Hz, or 400 kHz.
Does the equation for period and frequency apply to non-sinusoidal waves?
Yes, absolutely. The equation T = 1 / f is waveform-agnostic. It applies equally to square waves, triangle waves, sawtooth waves, and complex digital pulse trains (like UART or SPI clock signals), provided the signal is strictly periodic. The definition of a "cycle" remains the same: the time from a specific phase point on one pulse to the identical phase point on the next consecutive pulse. However, for non-sinusoidal waves, calculating RMS voltage or harmonic content requires Fourier analysis, but the fundamental period and frequency relationship remains unchanged.
What is the difference between standard frequency and angular frequency equations?
Standard frequency (f) measures cycles per second (Hertz) and is used for physical measurements, oscilloscope readings, and component selection (e.g., "a 100 kHz switching regulator"). Angular frequency (ω) measures radians per second and is used in mathematical calculus and AC impedance formulas. Because one full cycle equals 2π radians, the bridging equation is ω = 2πf. You use f when setting a function generator dial; you use ω when calculating the reactance of a capacitor (X_C = 1 / ωC) or an inductor (X_L = ωL).






