Productive Toolbox

Frequency Calculator

Calculate frequency from time period or time period from frequency instantly. Convert between Hz, kHz, MHz and seconds, milliseconds, microseconds.

📡

Frequency Calculator

Calculate frequency from time period or time period from frequency instantly. Convert between Hz, kHz, MHz and seconds, milliseconds, microseconds.

Actions

Calculation Mode

Input Parameters

Common Examples

What Is a Frequency Calculator?

A frequency calculator is a free online tool that converts between frequency and time period using the fundamental inverse relationship f = 1/T. It answers the question every electronics project eventually runs into: if one cycle takes this long, what frequency is that — or if the frequency is this, how long does one cycle actually take?

The math itself is a single division, but keeping track of units is where mistakes happen. Frequency can be expressed in Hz, kHz, or MHz, and time period in seconds, milliseconds, or microseconds — mixing them up by even one prefix throws a result off by a factor of a thousand. This time period to frequency calculator normalizes every input internally, so a value entered in kHz and a period entered in milliseconds always produce a correct, unit-consistent answer.

This tool is built for electrical engineers verifying AC circuit parameters, audio engineers working with test tones and waveform periods, RF technicians and radio hobbyists converting carrier frequencies, embedded and firmware engineers timing PWM and clock signals, and electronics students learning the f = 1/T relationship. Every calculation runs instantly in your browser with step-by-step working shown, adjustable precision up to 8 decimal places, calculation history, and a text export — free, with no signup required.

How Frequency and Time Period Calculation Works

Core Formulas

f = 1 ÷ T

T = 1 ÷ f

f = frequency in Hz · T = time period in seconds

  • Inverse relationship: frequency and time period always move in opposite directions — double the frequency and the period is cut in half
  • Frequency units: the calculator accepts and outputs Hz, kHz (× 1,000), and MHz (× 1,000,000), converting every value to a base Hz figure before computing
  • Time units: time period is accepted and returned in seconds, milliseconds (÷ 1,000), or microseconds (÷ 1,000,000)
  • Two calculation modes: Time Period → Frequency applies f = 1/T; Frequency → Time Period applies T = 1/f
  • Adjustable precision: results can be shown at 2 to 8 decimal places, with automatic scientific notation for extremely large or small values

How to Use the Frequency Calculator

Step-by-Step Guide

  1. 1Choose a calculation mode: Select Time Period → Frequency if you know how long one cycle takes, or Frequency → Time Period if you already know the frequency. The input fields update automatically to match the mode you pick.
  2. 2Enter your known value: Type the time period or frequency value into the input box. The field accepts decimals and switches its placeholder and unit selector depending on the mode you chose.
  3. 3Select the input unit: Choose seconds, milliseconds, or microseconds for time period, or Hz, kHz, or MHz for frequency. The calculator normalizes whatever you enter to a common base unit internally before computing.
  4. 4Set decimal precision: Pick 2 to 8 decimal places depending on how exact you need the answer. Use higher precision for MHz-range or microsecond-range values where rounding matters more.
  5. 5Choose the output unit: Select which unit you want the result displayed in — independent of your input unit. This lets you enter a value in Hz and read the answer directly in kHz or MHz.
  6. 6Read the result and steps: The calculator shows the converted value along with a full breakdown of the formula applied. Copy the result, save it to history, swap modes to check the reverse direction, or export a text report.

What This Tool Provides

  • Real-time calculation as you type
  • Bidirectional conversion — frequency or period first
  • Hz, kHz, and MHz frequency units
  • Seconds, milliseconds, and microsecond time units
  • Adjustable precision from 2 to 8 decimal places
  • Full step-by-step calculation breakdown
  • One-click swap between calculation modes
  • Calculation history (last 10 entries)
  • Export results as a text report
  • Copy result to clipboard
  • 100% browser-based — no data sent to a server
  • No registration required

Real-World Use Cases

Verifying Generator Output Frequency

An electrician is commissioning a backup generator and measures its output period on an oscilloscope at 20.08 ms per cycle. Entering 20.08 ms into Time Period → Frequency mode returns 49.80 Hz — just under the 50 Hz grid standard. The 0.4% deviation is within the generator's governor tolerance, so the electrician approves it for grid-tie use without adjustment.

Setting an Audio Test Tone

An audio engineer needs to generate the industry-standard 1 kHz reference tone for calibrating a mixing console. Using Frequency → Time Period mode with 1 kHz entered, the calculator returns exactly 1 ms. They confirm this matches the period shown on their signal generator before running the calibration sweep.

Tuning an AM Radio Receiver

A radio hobbyist is building a crystal radio tuned to a 1000 kHz AM station. Converting 1000 kHz (1 MHz) with Frequency → Time Period mode returns a 1 microsecond period. This confirms the local oscillator in their superheterodyne design needs to complete one full cycle every microsecond at that station's carrier frequency.

Designing a Motor-Control PWM Signal

An embedded engineer is setting the switching frequency for a brushless motor driver at 20 kHz — high enough to stay above the audible range. Entering 20 kHz into Frequency → Time Period mode returns a 50 microsecond period, which they use directly to configure the microcontroller's PWM timer registers.

Checking a Real-Time Clock Crystal

A hardware designer is verifying a 32.768 kHz watch crystal used for a real-time clock circuit. Entering 32.768 kHz returns a time period of 30.52 microseconds per cycle. Since 32.768 kHz equals 2^15 Hz, dividing this signal by 32,768 in a binary counter produces a clean 1 Hz tick — the basis of the RTC's one-second interrupt.

Physics Classroom Wave Demonstration

A physics teacher is preparing a lesson on periodic motion and measures a demonstration signal generator's output at a 4 ms period. Entering 4 ms into Time Period → Frequency mode returns 250 Hz, which students then compare against the piano's middle-B note (~247 Hz) to connect the abstract formula to something audible.

Tips & Common Mistakes

Pro Tips

  • 💡When comparing signals shown in different units, mentally convert both to Hz first. A 1500 Hz tone and a 1.5 kHz tone are identical, but comparing '1500' against '1.5' without noting the units is a common source of confused readings.
  • 💡For crystal oscillators and RTC circuits, work in microseconds and use 6-8 decimal precision. A 32.768 kHz crystal has a period of 30.5175781 µs — rounding to 2 decimals (30.52 µs) is fine for a datasheet check, but not for cycle-accurate timer register calculations.
  • 💡Use the swap button after getting a result to instantly check the calculation in the opposite direction — useful for verifying you entered the right mode without retyping values.
  • 💡When designing a 555 timer astable circuit, calculate the target period first with this tool, then work backward into resistor and capacitor values using T = 0.693 × (R1 + 2×R2) × C separately — this calculator gives you the T you need to hit.
  • 💡Save each conversion to history when working through a multi-frequency project (like a PWM frequency sweep) so you can compare several period values side by side instead of re-entering them.
  • 💡Remember that this calculator gives ordinary frequency f in Hz, not angular frequency ω in rad/s. If you're feeding a result into an impedance or reactance formula that expects ω, multiply the frequency by 2π afterward.

Common Mistakes to Avoid

  • Don't enter a kHz value into a field expecting Hz. Typing '50' intending 50 kHz but leaving the unit on Hz gives a period of 20 ms instead of the intended 20 µs — a thousand-fold error that's easy to miss if you don't check the unit dropdown.
  • Don't confuse time period with duty cycle. Period is the full length of one complete cycle; duty cycle is the percentage of that period a signal spends 'on.' This calculator only computes period from frequency — it does not account for duty cycle at all.
  • Don't assume 50 Hz and 60 Hz are interchangeable across regions. Equipment designed for one grid frequency (transformers, motors, some power supplies) can overheat or run incorrectly on the other — always check the nameplate rating before assuming.
  • Don't use low decimal precision for MHz-range or microsecond-range values. At 2 decimal places, a 13.56 MHz signal's period rounds to 0.07 µs, which loses enough accuracy to throw off downstream RF timing calculations — bump precision to 6-8 decimals for anything above 1 MHz.
  • Don't forget that time period must be entered as a positive number greater than zero. A period of zero or a negative value is not physically meaningful, and the calculator will reject it with a validation error.

Frequency ↔ Time Period Reference Table

FrequencyTime PeriodTypical Source
50 Hz20 msAC power — Europe, Asia, Africa
60 Hz16.667 msAC power — North America
440 Hz2.273 msMusical note A4 (concert pitch)
1 kHz1 msStandard audio test tone
20 kHz50 µsUpper limit of human hearing
32.768 kHz30.518 µsWatch / RTC crystal oscillator
100 kHz10 µsAM radio IF stage (typical)
1 MHz1 µsAM broadcast carrier reference

* Values rounded for display. Use the calculator above for full precision up to 8 decimal places.

Frequently Asked Questions

What is a frequency calculator?

A frequency calculator is a tool that converts between frequency and time period using the inverse relationship f = 1/T. Frequency (f) measures how many cycles occur per second in Hertz (Hz), while time period (T) measures how long one full cycle takes in seconds. Enter either value and the calculator instantly returns the other, along with the calculation steps.

How is frequency calculated from time period?

Frequency is calculated as f = 1/T, where T is the time period in seconds. For example, a signal with a time period of 0.02 seconds has a frequency of 1 ÷ 0.02 = 50 Hz. If your time period is entered in milliseconds or microseconds, the calculator first converts it to seconds before applying the formula.

How is time period calculated from frequency?

Time period is calculated as T = 1/f, where f is the frequency in Hertz. For example, a 1 MHz signal has a time period of 1 ÷ 1,000,000 = 0.000001 seconds, or 1 microsecond. The calculator normalizes kHz and MHz inputs to Hz internally before computing the period.

What decimal precision should I use?

For AC power calculations (50 Hz, 60 Hz) 2 to 3 decimal places is enough since the numbers are already round. For audio work in the kHz range, 4 to 6 decimals keeps millisecond periods accurate. For RF and MHz-range signals where the period is in microseconds or smaller, use 6 to 8 decimals to avoid rounding errors compounding in downstream calculations like PWM timing or crystal oscillator design.

What is the difference between frequency and angular frequency?

Frequency (f) is the number of cycles per second in Hertz, while angular frequency (ω) is the rate of rotation in radians per second, related by ω = 2πf. This calculator computes ordinary frequency f, not angular frequency. If you need ω for AC circuit impedance or reactance work, multiply the frequency result by 2π (approximately 6.2832) separately.

Why do AC power frequencies differ between regions?

Most of Europe, Asia, Africa, and Australia standardized on 50 Hz (time period 0.02 s / 20 ms) for their electrical grids, while North America and parts of South America and Japan use 60 Hz (time period ≈ 0.01667 s / 16.67 ms). The difference dates back to early 20th-century generator design decisions and has stayed fixed ever since because changing grid frequency requires replacing all connected equipment.

Can I use this calculator for audio frequencies?

Yes. Human hearing spans roughly 20 Hz to 20 kHz, and this calculator handles that entire range plus everything above and below it. A 440 Hz concert-pitch A note has a time period of about 2.27 ms, while a 1 kHz test tone — the standard reference signal in audio engineering — has a period of exactly 1 ms.

Can I use this calculator for RF and radio frequencies?

Yes, up to the MHz range. AM broadcast frequencies (530–1700 kHz) and shortwave/HF signals (up to 30 MHz) convert cleanly — for example, a 1 MHz carrier has a 1 microsecond period. For frequencies above the MHz range (GHz-scale microwave and cellular signals), convert your value to MHz first, since MHz is the highest frequency unit this tool supports.

What is the difference between Hz, kHz, and MHz?

Hz (Hertz) is the base unit — one cycle per second. kHz (kilohertz) equals 1,000 Hz, and MHz (megahertz) equals 1,000,000 Hz. A 100 kHz signal is the same as 100,000 Hz or 0.1 MHz. The calculator lets you pick input and output units independently, so you can enter a value in kHz and read the result in Hz or MHz without doing the multiplication yourself.

Is my data private when using this calculator?

Yes. All calculations run entirely in your browser using JavaScript. Your frequency values, time periods, and calculation history are never transmitted to any server, stored in any database, or accessible to anyone other than you.

Who Uses This Frequency Calculator?

Electrical Engineers

Verify AC circuit frequency and period parameters, check generator output against grid standards, and cross-reference values for reactance and impedance calculations.

🎚️

Audio Engineers

Convert between test-tone frequencies and waveform periods when calibrating equipment, analyzing recordings, or verifying signal generator output against spec.

📻

RF Technicians & Radio Hobbyists

Convert AM and shortwave carrier frequencies into cycle periods for oscillator design, antenna tuning, and homebrew receiver projects.

🔧

Embedded & Firmware Engineers

Calculate PWM switching periods, timer register values, and clock crystal cycle times when configuring microcontroller peripherals.

🎓

Electronics Students

Work through f = 1/T exercises, check homework answers, and build intuition for how frequency and period trade off across Hz, kHz, and MHz ranges.

🧑‍🔬

Physics Teachers

Demonstrate the inverse relationship between frequency and period in class using real oscilloscope readings converted live during a lesson.