HomeAll CategoriesWavelength Calculator with Steps | Frequency, eV & nm

Wavelength Calculator with Steps | Frequency, eV & nm

Wavelength Calculator

A free frequency to wavelength calculator that also converts wavelength to frequency, photon energy (eV, kJ/mol, cm⁻¹) to wavelength, and finds the de Broglie wavelength of electrons and the peak wavelength of a hot object. Any units in and out, with steps, charts and a diagram.

PhysicsWaves & OpticsStep by StepAny Unitsde BroglieFree

⚡ 0. Quick Answer

A wavelength calculator divides wave speed by frequency, λ = v / f. An FM station at 98.1 MHz in vacuum has λ = 299 792 458 m/s ÷ 98 100 000 Hz = 3.06 m.

λ [m] = v [m/s] ÷ f [Hz]  ·  λ [m] = h c ÷ E [J]

Rule of thumb: for radio waves, λ in metres ≈ 300 ÷ f in MHz (300 ÷ 98.1 = 3.06 m). For light, λ in nm ≈ 1240 ÷ E in eV (2.00 eV gives 620 nm, orange red).

Key Takeaways

  • A wavelength calculator uses λ = v/f: a 98.1 MHz radio wave is 3.06 m long in vacuum.
  • Frequency never changes when a wave enters a new medium; the wavelength does. Green light of 532 nm in vacuum is only 399 nm in water (n = 1.333).
  • For photons, λ = hc/E, so 1 eV corresponds to 1239.84 nm and 2.00 eV to 620 nm.
  • Sound is slow, so its wavelengths are long: concert A at 440 Hz in 20 °C air is 0.780 m.
  • Particles are waves too: an electron accelerated through 100 V has a de Broglie wavelength of 0.123 nm, about the size of an atom.

📚 1. What Is a Wavelength Calculator?

A wavelength calculator finds the distance between two matching points on a wave, such as two crests, from the things you can measure: the frequency and the wave speed, the energy of a photon, the temperature of a glowing object, or the energy of a moving particle. Wavelength (symbol λ, lambda) is a length, so its SI unit is the metre (m), with nanometres (nm) for light and picometres (pm) for X-rays and electrons.

The core idea is the wave equation, v = fλ. Every second, f crests pass you, and each crest is λ behind the one before it, so the wave moves f × λ metres per second. Rearranged, λ = v/f and f = v/λ.

A worked one-liner: Wi-Fi at 2.4 GHz has λ = 299 792 458 m/s ÷ 2.4 × 10⁹ Hz = 0.125 m, or 12.5 cm. A quarter-wave antenna for it is about 3.1 cm long.

Wavelength calculator diagram: wavelength measured crest to crestA sine wave with two and a half cycles, the wavelength lambda marked between two crests, the amplitude marked from the centre line, and a crest and trough labelled. wavelength λ amplitude crest trough v = f λ: f crests pass each second, each one λ behind the last
One wavelength is measured crest to crest (or trough to trough). Amplitude is the height from the centre line, and it does not affect the wavelength.

Who uses it: CBSE and ICSE Class 10 to 12 students (Chapter "Waves" and "Dual Nature of Radiation and Matter"), IGCSE, GCSE and A level physics, AP Physics 1 and 2, JEE and NEET aspirants, first-year chemistry students working with spectra, radio amateurs cutting antennas, audio engineers placing speakers, and ultrasound sonographers choosing a probe.

A short history: Thomas Young measured the wavelength of light with his double-slit experiments, reported in 1804. Max Planck linked energy to frequency in 1901, Einstein applied it to light in 1905, and Louis de Broglie proposed in 1924 that particles have a wavelength λ = h/p, confirmed by Davisson and Germer in 1927.

EquationWhat it findsUse it when
λ = v / fWavelength of any waveYou know the frequency and the speed in that medium (light, radio, sound, water)
λ = h c / EWavelength of a photonYou know the photon energy (eV, J, kJ/mol) or a wavenumber in cm⁻¹
λ = h / pde Broglie wavelength of a particleYou know a particle’s mass and its speed, kinetic energy or accelerating voltage
λmax = b / TPeak wavelength of thermal radiationYou know the absolute temperature of a star, lamp filament or warm body
λ = g T² / 2πDeep-water ocean wavelengthYou know the wave period and the water is deeper than about half a wavelength

🧮 2. Enter Your Values

Solve for:

Sample 1 fills the boxes. Nothing is calculated until you press Calculate.
Every value in every group is read in this unit.

Frequency values, comma separated

Commas, spaces, semicolons, tabs and new lines all separate values, so a column pasted from Excel works. Scientific notation works too: 6.2e-3 or 6.2×10^-3.

The first row is used as column names when it contains text. Text cells are ignored.

📊 3. Results and Step-by-Step Working

Result
___
Enter your values and press Calculate to see the answer, its units and every step.

🧠 4. Understanding Your Answer, In Detail

___ Press Calculate to fill this section with your own numbers. The sub-sections below explain every part of the output.

4.1 What the wavelength tells you physically

Wavelength is the length of one complete repeat of the wave in space. Frequency is how many repeats pass a point each second. Together they fix the speed, v = fλ. A long wavelength means the pattern is spread out; a short one means it is packed tightly. For light, wavelength decides the colour you see; for sound, the pitch you hear depends on frequency, while wavelength decides how sound bends around doors and how big a speaker or room mode is.

4.2 Is your number a sensible size?

Compare it with values you already know. AM radio is hundreds of metres long; FM radio about 3 m; Wi-Fi about 12 cm; a microwave oven 12.2 cm; visible light 380 to 750 nm; X-rays about 0.01 to 10 nm. Audible sound in air runs from about 17 m (20 Hz) down to 17 mm (20 kHz). Medical ultrasound at 5 MHz in tissue is about 0.31 mm. If your answer is a million times off one of these, a prefix (MHz vs Hz, nm vs m) is the usual cause.

4.3 How it scales

λ is inversely proportional to f. Double the frequency and the wavelength halves; go up by a factor of 1000 (kHz to MHz) and the wavelength falls by 1000. For photons, λ is inversely proportional to energy: double the eV, halve the nanometres. For de Broglie waves, λ falls as 1/√V at low voltage, so four times the voltage halves the wavelength.

4.4 The medium changes wavelength, not frequency

When light goes from air into glass with n = 1.52, its speed drops to c/1.52 and its wavelength drops by the same factor, but the frequency stays exactly the same, because the source sets it. That is why the photon energy, E = hf, does not change either. Spectroscopy tables quote vacuum wavelengths for this reason. The calculator always shows the vacuum wavelength on the spectrum strip and the in-medium wavelength in the answer.

4.5 Half and quarter wavelengths for antennas, pipes and coax

A half-wave dipole is about λ/2 long, a ground-plane or whip antenna about λ/4, and a 5/8-wave vertical about 0.625λ. Real antennas are cut 2 to 5% shorter than the free-space value because of end effects and wire thickness. Inside a coaxial cable the wave travels at VF × c, so a quarter-wave stub of coax is VF times shorter than the same stub in air. For sound, a pipe closed at one end first resonates when its length is λ/4, and an open pipe at λ/2.

4.6 What the charts show

Chart 1 shows the answer for every value on a log scale, so values that differ by factors of 10 or 1000 still fit on one plot. Chart 2 draws the physical law itself (for example λ = v/f as a straight line on log-log axes) with your values as dots; a dot off the line would mean a wrong input. Chart 3 gives photon energy for electromagnetic waves, or the period T = 1/f for sound and water waves. Chart 4 compares the smallest, mean and largest answer in each group.

4.7 The limits of the model

v = fλ is exact for a single-frequency wave. The approximations sit in the speed you choose: the speed of sound changes with temperature (about 0.6 m/s per °C) and slightly with humidity; refractive index changes with wavelength (dispersion); deep-water ocean waves only follow λ = gT²/2π when the water is deeper than about half a wavelength. The de Broglie mode uses relativistic momentum, so it stays correct at any voltage; the simple non-relativistic formula is shown beside it so you can see the error.

4.8 Where this leads next

Once you have the wavelength you can find diffraction angles (d sin θ = mλ), the resolution limit of a microscope (about λ/2), standing-wave patterns in strings and pipes, and photon energies for the photoelectric effect. Section 21 lists the related StatsUnlock tools.

✍ 5. How to Write the Answer (and Your Results in Research)

▶ Press Calculate above to auto-fill all five cards with the value chosen in "Show working for".

1. Exam answer (GRESS)
Given: f = ___ . Required: λ. Equation: λ = v / f. Answer: λ = ___ m (___ s.f.).
Conventions
  • Write every value with its unit, converted to SI before substituting.
  • Box the final answer and round only at the end.
  • Give the same number of significant figures as the least precise value in the data.
2. Final answer only
λ = ___
Conventions
  • Use scientific notation below 0.001 or from one million: 4.74 × 10¹⁴ Hz.
  • Leave a space between the number and the unit: 3.06 m, not 3.06m.
3. Lab report or research results sentence
The wavelength was calculated as λ = ___ using λ = v / f.
How to write your results in research
  • State the method and the constants used (c = 299 792 458 m/s exact; h = 6.62607015 × 10⁻³⁴ J s exact, CODATA 2022).
  • For a measured wavelength give value ± uncertainty with the unit: λ = 0.670 ± 0.006 m.
  • Say whether wavelengths are in vacuum or in air; spectroscopy usually quotes vacuum values below 200 nm and air values above.
  • Report the medium and temperature for sound (v depends on T).
4. Teacher’s answer-key line
Answer key: ___
Conventions
  • Award a method mark for the correct equation and a unit-conversion mark for MHz to Hz or nm to m.
  • Accept 3 × 10⁸ m/s for c unless the question gives more figures.
5. Plain text for a forum or chat
lambda = ___ m
Conventions
  • Write powers as e notation (4.74e14 Hz) or 10^14 so they paste anywhere.
  • Write u for μ (um for micrometres) when special characters break.

∑ 6. Formulas Used

Seven formulas drive this calculator. Card 1 is the main law; the others cover photons, particles, temperature and the constants. Each symbol is listed with its SI unit.

①
The Wave Equation
v = f × λ
vWave speed in the medium, metres per second (m/s)
fFrequency, hertz (Hz = 1/s). Set by the source; does not change between media
λWavelength, metres (m)
Example98.1 MHz in vacuum: λ = 299 792 458 ÷ 98 100 000 = 3.06 m
②
Rearrangements: Wavelength, Frequency, Period
λ = v / f  ·  f = v / λ  ·  T = 1 / f
TPeriod, seconds (s). Time for one complete cycle
ω, kAngular frequency ω = 2πf (rad/s) and wavenumber k = 2π/λ (rad/m)
RuleConvert MHz, GHz, nm and μm to Hz and m first
③
Photon Energy (Planck–Einstein)
E = h f = h c / λ  ·  λ(nm) ≈ 1239.84 / E(eV)
EEnergy of one photon, joules (J); 1 eV = 1.602176634 × 10⁻¹⁹ J
hPlanck constant, 6.62607015 × 10⁻³⁴ J s (exact)
Per moleEmol = E × NA; 1 eV per photon = 96.485 kJ/mol
Wavenumberν̃ = 1/λ in cm⁻¹, so λ(μm) = 10 000 / ν̃(cm⁻¹)
④
Wave Speed in a Medium
v = c / n  ·  v = c / √εr  ·  v = VF × c  ·  vsound = 331.3 √(1 + T/273.15)
nRefractive index, no unit (air 1.000293, water 1.333, crown glass 1.52)
εr, VFRelative permittivity of a dielectric and velocity factor of a cable, no unit; VF = 1/√εr
TAir temperature in °C in the sound formula (gives 343.2 m/s at 20 °C)
⑤
de Broglie Wavelength of a Particle
λ = h / p,   p = √(K² + 2Kmc²) / c  (≈ √(2mK) when v < 0.1c)
pMomentum, kilogram metres per second (kg m/s)
KKinetic energy, joules (J); for a charge q through voltage V, K = qV
mRest mass, kilograms (kg); electron 9.1093837139 × 10⁻³¹ kg
ShortcutElectron, low voltage: λ(nm) ≈ 1.226 / √V
⑥
Special Cases: Wien’s Law and Deep-Water Waves
λmax = b / T  ·  λdeep = g T² / 2π
bWien displacement constant, 2.897771955 × 10⁻³ m K
TAbsolute temperature in kelvin (K) for Wien; wave period in seconds (s) for water waves
gAcceleration of gravity, m/s² (9.80665 standard)
RangeDeep-water formula needs depth greater than about λ/2
⑦
Constants Used (CODATA 2022)
c = 299 792 458 m/s (exact)  ·  h c = 1239.84 eV nm
cSpeed of light in vacuum, exact by definition of the metre
h, e, NAExact since the 2019 SI redefinition
NoteUsing c = 3.00 × 10⁸ m/s changes answers by 0.07%, which matters only beyond 3 s.f.

🔀 7. Wavelength Calculation Flowchart, Step by Step

This flowchart shows how the wavelength is calculated step by step, using the same worked problem as the Excel, R, Python and by-hand sections: an FM radio station broadcasting at 98.1 MHz. Find its wavelength in vacuum, and the length of a half-wave and quarter-wave antenna.

Start or result Data step Calculation step Yes or no check
StartFM station at 98.1 MHzFind λ, λ/2 and λ/4 in vacuum
1
List the givens with unitsf = 98.1 MHz, v = c = 299 792 458 m/s
CheckIs it an electromagnetic wave in vacuum or air?
YesRadio is electromagnetic, so v = c (air changes it by only 0.03%).
NoSound, coax or water: use that medium’s speed instead (343 m/s, VF × c, 1482 m/s).
2
Convert to SI unitsf = 98.1 × 10⁶ Hz = 9.81 × 10⁷ Hz
3
Rearrange v = fλ for λλ = v / f
4
Substitute and computeλ = 299 792 458 m/s ÷ 9.81 × 10⁷ Hz = 3.05599 m
CheckDo the units reduce to metres?
Yes(m/s) ÷ (1/s) = m. Carry on.
No, stopA conversion is missing (MHz left unconverted gives 3.06 × 10⁶ m).
5
Antenna lengthsλ/2 = 1.528 m, λ/4 = 0.764 m
6
Round to the data’s significant figures98.1 has 3 s.f. → λ = 3.06 m
CheckIs the size sensible?
YesFM radio (88 to 108 MHz) is always about 3 m. Matches 300 ÷ 98.1 = 3.06.
NoRecheck the prefix: kHz, MHz and GHz differ by 1000 each.
Resultλ = 3.06 m (half-wave dipole 1.53 m, quarter-wave 0.764 m)Units check ✓ · Verified: 9.81 × 10⁷ Hz × 3.05599 m = 2.998 × 10⁸ m/s

The same numbers appear in Excel (Section 9), R (Section 10), Python (Section 11) and the hand method (Section 14).

📝 8. How to Use This Calculator

  1. Choose what to solve for. Pick a chip: wavelength from frequency, frequency from wavelength, wavelength from photon energy, wave speed, de Broglie wavelength or peak wavelength from temperature.
  2. Pick the unit of your values. Frequency in Hz to PHz or as a period, wavelength in pm to km or feet, energy in eV, J, kJ/mol or cm⁻¹.
  3. Type or paste your values. The default box takes comma-separated numbers, as the placeholder shows: 52, 48, 55, 61, 47, and so on.
  4. Name each group. The group name above each box is editable, and it flows into the table, the charts and the download.
  5. Add more groups or upload a file. Press Add group, or upload a CSV or Excel file and click the columns you want: every selected column becomes its own group.
  6. Choose the medium. Vacuum, air, water, glass, a coax velocity factor, a dielectric εr, sound at your air temperature, water, tissue, steel, deep ocean water or a custom speed.
  7. Set the options. Significant figures (default: match the data), the unit for showing wavelength, and g for ocean waves.
  8. Press Calculate. Nothing is computed until you do. Switching samples or modes clears the old results so you never read stale numbers.
  9. Read the answer box and the steps. Use "Show working for" to see the GRESS layout and every step for any value, with the units check and the substitution check.
  10. Check the charts and download. Four charts and a live diagram are drawn from your numbers. Download Doc gives a text report; Download PDF prints the results.

📈 9. How to Calculate Wavelength in Excel

Excel has no WAVELENGTH function, but the formula is one division. The work is in keeping the units straight: put the unit in every column header, convert MHz or nm to SI in its own column, and keep the constants in named cells so every row uses the same exact values. The example is the same five FM stations used by R and Python below.

The whole thing in one cell: with the frequency in MHz in B2, type =299792458/(B2*10^6). For 98.1 MHz it returns 3.055988359, which is 3.06 m to 3 significant figures.

9.1 The functions you need

You wantExcel formulaNote
Wavelength from frequency=$I$2/C2c in I2, frequency in Hz in C2
Frequency from wavelength in nm=$I$2/(A2*10^-9)Convert nm to m inside the formula
Wavelength in nm from energy in eV=1239.84198/A2hc in eV nm; or =$I$3*$I$2/(A2*$I$4)*10^9
Photon energy in eV=$I$3*C2/$I$4h in I3, e in I4
Period=1/C2Seconds; format as 0.00E+00
Metres to feet=CONVERT(D2,"m","ft")Unit text is case-sensitive
de Broglie, electron, V volts=6.62607015E-34/SQRT(2*9.1093837139E-31*1.602176634E-19*A2)Non-relativistic; fine below about 10 kV
Speed of sound at T °C=331.3*SQRT(1+A2/273.15)Dry air; 343.2 m/s at 20 °C
Slope of a lab graph=SLOPE(B2:B6,A2:A6)For the resonance-tube or grating experiment

9.2 Step by step

1 Type the data with units in the headers, and the constants once

Station names in column A, frequency in MHz in column B. Put c, h and e in a small table at the side (I2, I3, I4) so every formula points to the same exact value.

Excel wavelength calculation: data and constantsfx98.1ABCDEFGHI1Stationf (MHz)f (Hz)λ (m)λ/4 (m)E (eV)ConstantValue2FM 88.188.1c (m/s)2997924583FM 92.792.7h (J s)6.62607E-344FM 98.198.1e (C)1.60218E-195FM 101.5101.56FM 107.9107.9

Five FM stations in A2:B6, constants in I2:I4.

2 Convert MHz to Hz in its own column

=B2*10^6

Fill the formula down to C6. Keeping the conversion visible stops the most common error, dividing c by 98.1 instead of 98 100 000.

Excel wavelength calculation: MHz to Hzfx=B4*10^6ABCDEFGHI1Stationf (MHz)f (Hz)λ (m)λ/4 (m)E (eV)ConstantValue2FM 88.188.18.81E+07c (m/s)2997924583FM 92.792.79.27E+07h (J s)6.62607E-344FM 98.198.19.81E+07e (C)1.60218E-195FM 101.5101.51.02E+086FM 107.9107.91.08E+08

C4 shows 9.81E+07 Hz for the 98.1 MHz station.

3 Divide c by the frequency

=$I$2/C2

The dollar signs lock the reference to c, so it does not slide down when you fill the column.

Excel wavelength calculation: wavelengthfx=$I$2/C4ABCDEFGHI1Stationf (MHz)f (Hz)λ (m)λ/4 (m)E (eV)ConstantValue2FM 88.188.18.81E+073.402866c (m/s)2997924583FM 92.792.79.27E+073.234007h (J s)6.62607E-344FM 98.198.19.81E+073.055988e (C)1.60218E-195FM 101.5101.51.02E+082.9536206FM 107.9107.91.08E+082.778429

D4 = 3.055988 m, the same as Sections 7, 10, 11 and 14.

4 Add the quarter-wave length and the photon energy

=D2/4=$I$3*C2/$I$4
Excel wavelength calculation: quarter wave and energyfx=D4/4ABCDEFGHI1Stationf (MHz)f (Hz)λ (m)λ/4 (m)E (eV)ConstantValue2FM 88.188.18.81E+073.4028660.8507163.64E-07c (m/s)2997924583FM 92.792.79.27E+073.2340070.8085023.83E-07h (J s)6.62607E-344FM 98.198.19.81E+073.0559880.7639974.06E-07e (C)1.60218E-195FM 101.5101.51.02E+082.9536200.7384054.20E-076FM 107.9107.91.08E+082.7784290.6946074.46E-07

For 98.1 MHz: quarter-wave 0.764 m and photon energy 4.06E-07 eV.

9.3 The awkward cases

  • Scientific notation: Excel shows 0.000000406 as 4.06E-07. Use Format Cells, Scientific, 2 decimal places, to keep 3 significant figures.
  • CONVERT unit text is exact: =CONVERT(D2,"m","ft") works, but "M" or "feet" returns #N/A.
  • Typing 3E8 for c changes the answer by 0.07%. That is fine for 2 or 3 significant figures, but a mark scheme that uses 3.00 × 10⁸ will give 3.06 m either way.
  • Precision: Excel keeps about 15 significant digits, far more than any measurement.

9.4 Why Excel might disagree with R, Python or your textbook

SituationWhat happensFix
Textbook uses c = 3 × 10⁸ m/s3.058 m instead of 3.056 mBoth round to 3.06 m at 3 s.f.
Sound speed 340, 343 or 343.2 m/sWavelengths differ by up to 1%Use the speed your question gives, or compute it from the temperature
hc taken as 1240 instead of 1239.84 eV nm0.013% differenceOnly matters past 4 s.f.
Rounding 2.5 to 2 or 3Excel ROUND rounds half away from zero; R and Python round half to evenRound only the final answer, and use signif() in R or f"{x:#.3g}" in Python
Vacuum vs air wavelength for lightAir values are 0.03% shorterSay which you report

9.5 Charting it

Select the frequency and wavelength columns, insert a Scatter chart (never the Line chart, which spaces the x values evenly), then set both axes to logarithmic scale in Format Axis. The points fall on a straight line of slope −1, because λ = c/f. For a lab experiment add a linear trendline and tick "Display equation on chart".

9.6 Errors you will hit

  • #DIV/0!: a blank or zero frequency. Wrap it: =IFERROR($I$2/C2,"").
  • #VALUE!: a cell holds text such as "98.1 MHz". Keep units in the header only.
  • #NUM!: square root of a negative number in the de Broglie formula, usually a negative voltage.
  • #N/A: a misspelt CONVERT unit.

📊 10. How to Calculate Wavelength in R

Copy the whole block and run it in RStudio, Posit Cloud or with Rscript wavelength.R. It uses base R only, no packages. To use your own data, change the two input lines in part 2.

10.1 The complete script

R
# Wavelength calculator in R: lambda = v / f and E = h f
# Runs in RStudio, Posit Cloud or with: Rscript wavelength.R  (base R only, no packages)

# ---- 1. Constants (CODATA 2022, exact by SI definition) ----
c_light <- 299792458        # speed of light, m/s
h       <- 6.62607015e-34   # Planck constant, J s
e_ch    <- 1.602176634e-19  # elementary charge, C (1 eV = e_ch joules)

# ---- 2. Inputs (change these two lines) ----
station <- c("FM 88.1", "FM 92.7", "FM 98.1", "FM 101.5", "FM 107.9")
f_MHz   <- c(88.1, 92.7, 98.1, 101.5, 107.9)   # frequency in MHz
v       <- c_light                             # wave speed, m/s (use 343.2 for sound at 20 C)

# ---- 3. Calculation in SI units ----
f       <- f_MHz * 1e6      # Hz
lambda  <- v / f            # m
half    <- lambda / 2       # m
quarter <- lambda / 4       # m
E_eV    <- h * f / e_ch     # photon energy, eV

res <- data.frame(station, f_Hz = f, lambda_m = signif(lambda, 3),
                  half_m = signif(half, 3), quarter_m = signif(quarter, 3),
                  E_eV = signif(E_eV, 3))
print(res)

# ---- 4. Checks ----
cat("Substitution check, f x lambda for 98.1 MHz:", format(f[3] * lambda[3], digits = 10), "m/s\n")
stopifnot(isTRUE(all.equal(f * lambda, rep(v, length(f)))))
cat(sprintf("Headline: an FM station at 98.1 MHz has a wavelength of %s m in vacuum.\n",
            formatC(lambda[3], format = "fg", digits = 3, flag = "#")))

# ---- 5. Figure: lambda = v/f with the stations on it (300 dpi) ----
png("wavelength_plot_r.png", width = 6, height = 4, units = "in", res = 300)
ff <- 10^seq(7.5, 8.5, length.out = 200)
plot(ff / 1e6, v / ff, type = "l", log = "xy", lwd = 2, col = "#0f172a",
     xlab = "Frequency f (MHz)", ylab = "Wavelength lambda (m)",
     main = "Wavelength of FM radio stations")
points(f_MHz, lambda, pch = 19, col = "#2563eb", cex = 1.3)
legend("topright", c("lambda = c / f", "FM stations"), lty = c(1, NA), pch = c(NA, 19),
       col = c("#0f172a", "#2563eb"), bty = "n")
invisible(dev.off())
cat("Saved wavelength_plot_r.png\n")

Output (run and checked):

Console
   station      f_Hz lambda_m half_m quarter_m     E_eV
1  FM 88.1  88100000     3.40   1.70     0.851 3.64e-07
2  FM 92.7  92700000     3.23   1.62     0.809 3.83e-07
3  FM 98.1  98100000     3.06   1.53     0.764 4.06e-07
4 FM 101.5 101500000     2.95   1.48     0.738 4.20e-07
5 FM 107.9 107900000     2.78   1.39     0.695 4.46e-07
Substitution check, f x lambda for 98.1 MHz: 299792458 m/s
Headline: an FM station at 98.1 MHz has a wavelength of 3.06 m in vacuum.
Saved wavelength_plot_r.png

10.2 What each part does

c_light, h, e_chThe constants, typed once with their CODATA source. All three are exact.
f_MHz * 1e6Converts to hertz before dividing, so the answer is in metres.
signif(x, 3)Rounds to 3 significant figures, matching 98.1. Use it only for display.
stopifnot(...)The substitution check: f × λ must equal v.
png(..., res = 300)Saves a 300 dpi figure ready for a report.

R traps: round() rounds half to even; log() is the natural log; trig functions use radians; and c is also R’s combine function, which is why the script calls the speed of light c_light.

10.3 What the figure shows

A straight line on log-log axes, λ = c/f, with the five stations on it. Higher frequency sits lower and to the right: shorter wavelength.

10.4 Common problems and fixes

  • Answer 10⁶ times too big: you divided by MHz, not Hz.
  • "object c not found" or odd results: you overwrote c(); restart R.
  • Figure not saved: the dev.off() line did not run.

10.5 Useful one-liners

299792458 / 2.4e9                            # Wi-Fi wavelength, m
1239.84198 / 2.0                             # 2 eV photon, nm
331.3 * sqrt(1 + 20 / 273.15) / 440           # concert A in air, m
6.62607015e-34 / sqrt(2 * 9.1093837139e-31 * 1.602176634e-19 * 100)  # electron at 100 V, m

🐍 11. How to Calculate Wavelength in Python

Install once: pip install numpy scipy matplotlib. The script takes c, h and e from scipy.constants, which carries the exact CODATA values.

11.1 The complete script

Python
# Wavelength calculator in Python: lambda = v / f and E = h f
# Runs in a terminal, Jupyter or Google Colab.
import numpy as np
import matplotlib
matplotlib.use("Agg")                      # draw without a screen; delete this line in Jupyter
import matplotlib.pyplot as plt
from scipy.constants import c, h, e         # CODATA values: c, h and e are exact

# ---- 1. Inputs (change these two lines) ----
stations = ["FM 88.1", "FM 92.7", "FM 98.1", "FM 101.5", "FM 107.9"]
f_MHz = np.array([88.1, 92.7, 98.1, 101.5, 107.9])   # frequency in MHz
v = c                                                 # wave speed in m/s (vacuum); 343.2 for sound at 20 C

# ---- 2. Calculation, all in SI units ----
f = f_MHz * 1e6          # MHz -> Hz
lam = v / f              # wavelength in m
half = lam / 2           # half-wave dipole length in m
quarter = lam / 4        # quarter-wave antenna length in m
T = 1 / f                # period in s
E_eV = h * f / e         # photon energy in eV

# ---- 3. Results with units, 3 significant figures (matching 98.1) ----
for s, lam_i, half_i, q_i, E_i in zip(stations, lam, half, quarter, E_eV):
    print(f"{s} MHz: lambda = {lam_i:#.3g} m, lambda/2 = {half_i:#.3g} m, "
          f"lambda/4 = {q_i:#.3g} m, E = {E_i:#.3g} eV")

# ---- 4. Checks ----
print("Substitution check, f x lambda for 98.1 MHz:", f[2] * lam[2], "m/s (should equal c)")
assert np.allclose(f * lam, v)
print(f"Headline: an FM station at 98.1 MHz has a wavelength of {lam[2]:#.3g} m in vacuum.")

# ---- 5. Figure: the law lambda = v/f with the stations on it (300 dpi) ----
ff = np.logspace(7.5, 8.5, 200)            # 31.6 MHz to 316 MHz
fig, ax = plt.subplots(figsize=(6, 4))
ax.loglog(ff / 1e6, v / ff, color="#0f172a", lw=2, label="lambda = c / f")
ax.scatter(f_MHz, lam, color="#2563eb", s=45, zorder=3, label="FM stations")
ax.set_xlabel("Frequency f (MHz)")
ax.set_ylabel("Wavelength lambda (m)")
ax.set_title("Wavelength of FM radio stations")
ax.grid(True, which="both", alpha=0.3)
ax.legend()
fig.savefig("wavelength_plot.png", dpi=300, bbox_inches="tight")
print("Saved wavelength_plot.png")

Output (run and checked):

Console
FM 88.1 MHz: lambda = 3.40 m, lambda/2 = 1.70 m, lambda/4 = 0.851 m, E = 3.64e-07 eV
FM 92.7 MHz: lambda = 3.23 m, lambda/2 = 1.62 m, lambda/4 = 0.809 m, E = 3.83e-07 eV
FM 98.1 MHz: lambda = 3.06 m, lambda/2 = 1.53 m, lambda/4 = 0.764 m, E = 4.06e-07 eV
FM 101.5 MHz: lambda = 2.95 m, lambda/2 = 1.48 m, lambda/4 = 0.738 m, E = 4.20e-07 eV
FM 107.9 MHz: lambda = 2.78 m, lambda/2 = 1.39 m, lambda/4 = 0.695 m, E = 4.46e-07 eV
Substitution check, f x lambda for 98.1 MHz: 299792458.0 m/s (should equal c)
Headline: an FM station at 98.1 MHz has a wavelength of 3.06 m in vacuum.
Saved wavelength_plot.png

11.2 What each part does

from scipy.constants import c, h, eExact SI constants, so no typed-in rounding.
np.array([...])Works on every value at once; no loop needed for the maths.
f"{x:#.3g}"3 significant figures, keeping trailing zeros (3.40, not 3.4).
np.allclose(f * lam, v)The substitution check.
savefig(..., dpi=300)Report-quality figure.

Python traps: ^ is bitwise XOR, so write 10**6 or 1e6; round() rounds half to even; math.sin takes radians; scipy.constants.g is 9.80665 m/s².

11.3 What the figure shows

The same straight line as the R figure: λ = c/f on log-log axes with the stations as blue dots.

11.4 Common problems and fixes

  • ModuleNotFoundError: scipy: run the pip line above.
  • No window appears: the script saves a PNG instead; remove the matplotlib.use("Agg") line in Jupyter to see it inline.
  • Strange huge numbers: 10^6 was used instead of 10**6.

11.5 Useful one-liners

from scipy.constants import c, h, e, m_e
c / 2.4e9                              # Wi-Fi wavelength, m
h * c / (2.0 * e) * 1e9                # 2 eV photon, nm
h / (2 * m_e * e * 100) ** 0.5         # electron at 100 V (non-relativistic), m
2.897771955e-3 / 5772                  # Sun's peak wavelength (Wien), m

Run it in a terminal (python wavelength.py), a Jupyter notebook, or Google Colab, which has NumPy, SciPy and Matplotlib already installed.

📋 12. Reference Tables

12.1 Constants used (CODATA 2022)

ConstantSymbolValueStatus
Speed of light in vacuumc299 792 458 m/sexact
Planck constanth6.626 070 15 × 10⁻³⁴ J sexact
Elementary charge (1 eV in joules)e1.602 176 634 × 10⁻¹⁹ Cexact
Avogadro constantNA6.022 140 76 × 10²³ mol⁻¹exact
Boltzmann constantkB1.380 649 × 10⁻²³ J/Kexact
Wien displacement constantb2.897 771 955 × 10⁻³ m Kexact (derived)
Stefan–Boltzmann constantσ5.670 374 419 × 10⁻⁸ W m⁻² K⁻⁴exact (derived)
Planck constant × chc1239.841 98 eV nmexact (derived)
Electron massme9.109 383 7139 × 10⁻³¹ kgmeasured
Proton massmp1.672 621 925 95 × 10⁻²⁷ kgmeasured
Neutron massmn1.674 927 500 56 × 10⁻²⁷ kgmeasured
Atomic mass constantu1.660 539 068 92 × 10⁻²⁷ kgmeasured

Source: NIST CODATA 2022 recommended values (Mohr et al., 2025, Reference 1).

12.2 The electromagnetic spectrum

BandWavelengthFrequencyPhoton energy
Gamma raybelow 10 pmabove 30 EHzabove 124 keV
X-ray10 pm to 10 nm30.0 PHz to 30.0 EHz124 eV to 124 keV
Ultraviolet10 nm to 3.8e+02 nm789 THz to 30.0 PHz3.26 eV to 124 eV
Visible3.8e+02 nm to 7.5e+02 nm400 THz to 789 THz1.65 eV to 3.26 eV
Infrared7.5e+02 nm to 1.0 mm300 GHz to 400 THz1.24 meV to 1.65 eV
Microwave1.0 mm to 1.0 m300 MHz to 300 GHz1.24 μeV to 1.24 meV
Radioabove 1.0 mbelow 3.0e+02 MHzbelow 1.24 μeV

Band edges are conventions, not sharp physical limits, and sources differ slightly. Values are vacuum wavelengths.

12.3 Wavelength to colour: the visible spectrum

ColourWavelengthFrequencyPhoton energy
Violet380 to 450 nm666 to 789 THz2.76 to 3.26 eV
Blue450 to 485 nm618 to 666 THz2.56 to 2.76 eV
Cyan485 to 500 nm600 to 618 THz2.48 to 2.56 eV
Green500 to 565 nm531 to 600 THz2.19 to 2.48 eV
Yellow565 to 590 nm508 to 531 THz2.10 to 2.19 eV
Orange590 to 625 nm480 to 508 THz1.98 to 2.10 eV
Red625 to 750 nm400 to 480 THz1.65 to 1.98 eV

Colour names are approximate; perceived colour depends on the observer and lighting (Smith & Guild, 1931; Stockman & Sharpe, 2000). The swatches use a display approximation.

12.4 Wave speed in common media

MediumWave speedNote
Light or radio in vacuum299 792 458 m/sexact
Light in air, 15 °C, sea levelc / 1.000293 = 299 704 645 m/svisible light (Edlén, 1966; Ciddor, 1996)
Light in waterc / 1.333 = 2.249 × 10⁸ m/sn near 589 nm (Daimon & Masumura, 2007)
Light in crown glassc / 1.52 = 1.97 × 10⁸ m/sn varies 1.50 to 1.53 by glass type
Solid polyethylene coax (VF 0.66)1.98 × 10⁸ m/sRG-58, RG-213 type cables
Foam dielectric coax (VF 0.85)2.55 × 10⁸ m/scheck the maker’s data sheet
FR-4 circuit board (εr ≈ 4.4)c / √4.4 = 1.43 × 10⁸ m/sstripline; microstrip is faster
Sound in dry air, 0 °C331.3 m/srises about 0.6 m/s per °C (Cramer, 1993)
Sound in dry air, 20 °C343.2 m/sthe usual textbook value
Sound in fresh water, 20 °C1482 m/sDel Grosso & Mader (1972)
Sound in seawaterabout 1500 m/sdepends on temperature, salinity and depth
Ultrasound in soft tissue1540 m/sstandard value used by scanners
Sound in steel (longitudinal)about 5960 m/svaries by alloy

12.5 Common frequencies and their wavelengths

SourceFrequencyWavelengthPhoton energy
Long-wave radio198 kHz1.51 km8.19 × 10⁻¹⁰ eV
AM radio1.00 MHz300 m4.14 neV
FM radio98.10 MHz3.06 m406 neV
ISM remote keys433.9 MHz691 mm1.79 μeV
GPS L11.575 GHz190 mm6.52 μeV
Wi-Fi 2.4 GHz2.400 GHz125 mm9.93 μeV
Microwave oven2.450 GHz122 mm10.1 μeV
Wi-Fi 5.8 GHz5.800 GHz51.7 mm24.0 μeV
5G mmWave28.00 GHz10.7 mm116 μeV
Telecom laser193.4 THz1.55 μm800 meV
Red laser (HeNe)473.8 THz633 nm1.96 eV
Green laser563.5 THz532 nm2.33 eV
Blue-violet laser740.2 THz405 nm3.06 eV
Copper Kα X-ray1.946 EHz154 pm8.05 keV
Lowest audible sound (air, 20 °C)20.0 Hz17.2 mnot EM
Concert A (air, 20 °C)440 Hz780 mmnot EM
Highest audible sound (air)20.0 kHz17.2 mmnot EM
Ultrasound 5 MHz in tissue5.000 MHz308 μmnot EM

12.6 de Broglie wavelength of an electron

Accelerating voltageλ (relativistic)λ (non-relativistic)Error of the simple formulav/c
54 V166.9 pm166.9 pm0.00%0.015
100 V122.6 pm122.6 pm0.00%0.020
1 000 V38.76 pm38.78 pm0.05%0.062
10 000 V12.20 pm12.26 pm0.49%0.195
100 000 V3.701 pm3.878 pm4.78%0.548
200 000 V2.508 pm2.742 pm9.35%0.695
300 000 V1.969 pm2.239 pm13.73%0.777

12.7 Unit prefixes for wavelength and frequency

PrefixFactorLength exampleFrequency example
pico (p)10⁻¹²1 pm = 10⁻¹² m (X-rays, electrons)–
ångström (Å)10⁻¹⁰1 Å = 0.1 nm (crystal spacings)–
nano (n)10⁻⁹1 nm (light, UV)–
micro (μ)10⁻⁶1 μm (infrared)–
milli (m)10⁻³1 mm (microwaves, ultrasound)–
kilo (k)10³1 km (long-wave radio)1 kHz
mega (M)10⁶–1 MHz (AM, FM radio)
giga (G)10⁹–1 GHz (Wi-Fi, phones)
tera (T)10¹²–1 THz (far infrared)
peta (P)10¹⁵–1 PHz (ultraviolet)

📈 13. Example Results

1
TEXTBOOK CASE

Frequency of a red laser pointer

The classic light question: wavelength in nm, answer in hertz.

A red helium-neon laser emits light of wavelength 633 nm in vacuum. Find its frequency and photon energy.

λ = 633 nmv = cf = 4.74 × 10¹⁴ HzE = 1.96 eV
QuantityValue
f = c/λ299 792 458 ÷ 633 × 10⁻⁹ = 4.74 × 10¹⁴ Hz
Photon energy1239.84 ÷ 633 = 1.96 eV
Period2.11 × 10⁻¹⁵ s
λ = 633 nmA red wave labelled 633 nanometres. λ = 633 nm red light, f = 474 THz
Drawn in the real colour of 633 nm light.

What it means: About 474 million million crests pass every second; each photon carries 1.96 eV.

How to write it: f = 4.74 × 10¹⁴ Hz (3 s.f.).

2
EXAM CASE: SOLVE FOR v

Speed of sound from a measured wavelength

The examiner gives f and λ and asks for the speed.

A 440 Hz tuning fork sets up a sound wave of wavelength 0.780 m. Find the speed of sound.

f = 440 Hzλ = 0.780 mv = 343 m/s
QuantityValue
v = fλ440 × 0.780 = 343.2 m/s
Rounded (3 s.f.)343 m/s
Air temperature impliedabout 20 °C
λ = 0.780 mA sound wave with wavelength 0.780 metres. λ = 0.780 m sound in air, f = 440 Hz
Use the "Wave speed v" chip with λ = 0.780 m and f = 440 Hz.

What it means: This is the textbook speed of sound in air at about 20 °C.

How to write it: v = 343 m/s.

3
NON-SI UNITS

Wi-Fi wavelength in inches

Antenna builders in the US work in inches.

Find the wavelength of 2.4 GHz Wi-Fi in inches, and the length of a quarter-wave antenna.

f = 2.4 GHzλ = 12.5 cmλ = 4.92 inλ/4 = 1.23 in
QuantityValue
λ = c/f0.1249 m = 12.49 cm
In inches4.918 in
Quarter wave1.229 in
λ = 4.92 inA wave labelled 4.92 inches. λ = 4.92 in Wi-Fi 2.4 GHz, quarter wave 1.23 in
Set "Show wavelength in" to in to read inches directly.

What it means: A Wi-Fi wavelength is about the width of a hand.

How to write it: λ = 4.9 in (2 s.f., matching 2.4 GHz); λ/4 = 1.2 in.

4
EVERYDAY CASE

Middle C on a piano

Sound wavelengths are human-sized.

Middle C has a frequency of 261.63 Hz. Find its wavelength in air at 20 °C.

f = 261.63 HzT = 20 °Cv = 343.2 m/sλ = 1.312 m
QuantityValue
v = 331.3√(1 + 20/273.15)343.2 m/s
λ = v/f343.21 ÷ 261.63 = 1.312 m
Closed pipe length (λ/4)0.328 m
λ = 1.312 mA sound wave of 1.312 metres. λ = 1.312 m middle C, 261.63 Hz in air
Sample 4 loads the middle octave notes.

What it means: Middle C spans a little over a metre, so it bends easily around people, doors and furniture.

How to write it: λ = 1.312 m (4 s.f.).

5
EXTREME MAGNITUDE

Electron in a 200 kV microscope

Tiny wavelength, so atoms become visible.

A transmission electron microscope accelerates electrons through 200 kV. Find the de Broglie wavelength.

V = 200 kVv = 0.695cλ = 2.508 pm
QuantityValue
Relativistic λ2.508 pm
Simple formula h/√(2meV)2.742 pm
Error of the simple formula9.3%
λ = 2.51 pmA matter wave of 2.51 picometres. λ = 2.51 pm electron, 200 kV, about 40 times smaller than an atom
Sample 6 includes 100, 200 and 300 kV.

What it means: At 0.70c the electron is relativistic, and the simple formula is 9% too long.

How to write it: λ = 2.51 pm (relativistic).

6
LIMIT CASE

Light entering water

The trap that catches most students: what changes?

Green light of 532 nm (vacuum) enters water, n = 1.333. Find its wavelength and frequency in water.

λ₀ = 532 nmn = 1.333λ = 399 nmf unchanged
QuantityValue
Frequency (both)563 THz
λ in water = λ₀/n532 ÷ 1.333 = 399 nm
Speed in water2.25 × 10⁸ m/s
Green light wavelength in vacuum and in waterTwo waves drawn to scale: the water wave has a wavelength 1.333 times shorter than the vacuum wave, with the same number of crests per second. vacuum: λ = 532 nm water (n = 1.333): λ = 399 nm same frequency, 563 THz, in both
Drawn to scale: same crests per second, shorter spacing in water.

What it means: The colour you see does not change, because colour follows frequency.

How to write it: λ = 399 nm in water, f = 5.64 × 10¹⁴ Hz.

7
MODEL LIMIT

Ocean swell: deep vs shallow water

Where the simple deep-water formula fails.

Ocean swell has a period of 10 s. Find its wavelength in deep water, then in water 5 m deep near a beach.

T = 10 sdeep: λ = 156 mdepth 5 m: λ = 70.0 m
QuantityValue
Deep water, λ = gT²/2π156.1 m
Shallow water, λ = T√(gd)70.0 m
Deep-water formula valid whendepth more than about 78 m
Ocean wavelength in deep and shallow waterBars to scale: 156 metres in deep water and 70 metres in 5 metre deep water.deep water156 m5 m deep70.0 mbars drawn to scale
Choose the deep-water ocean medium and the "s (period T)" unit.

What it means: Near the shore the waves slow and bunch up, so the deep-water value is 2.2 times too long.

How to write it: λ = 156 m in deep water; the deep-water model does not apply at 5 m depth.

8
TRAP CASE

Coax quarter-wave stub without the velocity factor

A common radio-build mistake.

A 433.92 MHz quarter-wave stub is cut from coax with VF = 0.66. A student uses the free-space wavelength.

f = 433.92 MHzVF = 0.66free space λ/4 = 17.3 cmin coax λ/4 = 11.4 cm
QuantityValue
Free-space λ/417.27 cm
In coax, VF × λ/411.40 cm
Error if VF is ignored52% too long
Quarter wavelength in free space and in coaxBars to scale: 17.3 centimetres in free space and 11.4 centimetres inside VF 0.66 coax.free space17.3 cmin coax11.4 cmbars drawn to scale
Pick "Cable, enter velocity factor VF" as the medium.

What it means: Ignoring the velocity factor makes the stub resonate at the wrong frequency.

How to write it: λ/4 = 11.4 cm in VF 0.66 coax.

✏️ 14. How to Solve Wavelength Problems by Hand, Step by Step

This is the written method examiners expect, worked on the same example as Sections 7, 9, 10 and 11: an FM station broadcasts at 98.1 MHz. Find its wavelength in vacuum and the length of a quarter-wave antenna.

14.1 The written method (GRESS)

  1. Given. f = 98.1 MHz = 98.1 × 10⁶ Hz = 9.81 × 10⁷ Hz; v = c = 3.00 × 10⁸ m/s (or 299 792 458 m/s).
  2. Required. λ (m) and λ/4 (m).
  3. Equation. v = fλ, so λ = v/f.
  4. Substitute, with units. λ = (2.998 × 10⁸ m/s) ÷ (9.81 × 10⁷ Hz).
  5. Solve. λ = 3.056 m; λ/4 = 0.764 m.
  6. Check the units and the size. (m/s) ÷ (1/s) = m. Estimate: 300 ÷ 98 ≈ 3. Both agree.
  7. Write the answer with units and significant figures. λ = 3.06 m and λ/4 = 0.764 m (3 significant figures, matching 98.1).

14.2 On a scientific calculator

CalculatorKeysWhat you see
Any scientific calculator299792458 ÷ 98.1 ×10ˣ 6 =3.055988359
Any scientific calculatorAns ÷ 4 =0.7639970897
Photon, eV to nm1239.84 ÷ 2 =619.92
Electron at 100 V1.226 ÷ √ 100 =0.1226 (nm)

The power-of-ten key is labelled ×10ˣ on Casio models and EE or ×10ⁿ on many Texas Instruments models. Typing 299792458 ÷ 98.1 × 10 ^ 6 without brackets divides by 98.1 and then multiplies by 10⁶, which is wrong; use the ×10ˣ key or brackets. Built-in constant menus (CONST) differ between models, so check your manual before using them in an exam.

14.3 Measure it yourself: a school lab practical

Wavelength of sound with a resonance tube

  1. Stand a long glass or plastic tube in a tall jar of water, so the length of the air column above the water can be changed by raising the tube.
  2. Strike a tuning fork (for example 512 Hz) and hold it just above the open end.
  3. Raise the tube slowly from the water. Mark the first length L₁ where the sound is loudest (first resonance, about λ/4).
  4. Keep raising it to find the second loud point L₂ (about 3λ/4). Then λ = 2(L₂ − L₁); the unknown end correction cancels.
  5. Repeat with 3 forks and record each in the table. Phone apps such as phyphox can replace the fork with a tone generator (Staacks et al., 2018).
f (Hz)L₁ (m)L₂ (m)λ = 2(L₂ − L₁) (m)v = fλ (m/s)
3840.2120.6590.894343
5120.1570.4920.670343
6400.1230.3910.536343

Graph: plot λ (y) against 1/f (x). The points lie on a straight line through the origin whose gradient is the speed of sound, here about 343 m/s at 20 °C. To check one row in the calculator, choose "Wave speed v", type 0.670 in a group box in m, and set the frequency to 512 Hz.

Main errors: judging the loudest point by ear (repeat and average), room temperature changing v, and a wide tube making the end correction larger (using L₂ − L₁ removes it). A smartphone version of Kundt’s tube gives similar results (Parolin & Pezzi, 2015).

14.4 Practice problems with answers

1. A 600 Hz sound travels at 343 m/s in air. Find λ.

λ = 343 ÷ 600 = 0.572 m.

2. An AM station broadcasts at 1.5 MHz. Find its wavelength.

λ = 3.00 × 10⁸ ÷ 1.5 × 10⁶ = 2.0 × 10² m (200 m).

3. Green light has λ = 500 nm. Find its frequency.

f = 2.998 × 10⁸ ÷ 500 × 10⁻⁹ = 6.00 × 10¹⁴ Hz.

4. A photon has an energy of 3.0 eV. Find its wavelength.

λ = 1239.84 ÷ 3.0 = 413 nm, which is 4.1 × 10² nm to 2 s.f. (violet).

5. A wave on a string has v = 12 m/s and λ = 0.40 m. Find f.

f = 12 ÷ 0.40 = 30 Hz.

6. A phone uses 1800 MHz. Find λ in centimetres.

λ = 2.998 × 10⁸ ÷ 1.8 × 10⁹ = 0.167 m = 16.7 cm (17 cm to 2 s.f.).

7. Non-SI: sound travels at 1125 ft/s. Find λ of a 5.0 kHz tone in feet.

λ = 1125 ÷ 5000 = 0.23 ft (0.225 ft, about 6.9 cm).

8. An electron is accelerated through 150 V. Find its de Broglie wavelength.

λ ≈ 1.226 ÷ √150 = 0.100 nm.

9. A student writes T = −300 °C for a gas and asks for λmax. What is wrong?

Not physical. −300 °C is below absolute zero (−273.15 °C). No real object can have that temperature.

10. Trap: 600 nm light enters glass (n = 1.50). Find its new frequency and wavelength.

Frequency is unchanged, 5.00 × 10¹⁴ Hz. Wavelength falls to 600 ÷ 1.50 = 400 nm.

14.5 Mistakes that lose marks

  • Dividing by 98.1 instead of 98.1 × 10⁶ (forgetting MHz).
  • Writing nm as 10⁻⁶ m (that is μm); 1 nm = 10⁻⁹ m.
  • Using c for sound waves, or 343 m/s for light.
  • Saying the frequency changes when light enters water. Only the speed and wavelength change.
  • Using °C in Wien’s law instead of kelvin.
  • Using E = hf with E in eV but h in J s, which gives an answer 1.6 × 10⁻¹⁹ times wrong.
  • Giving 8 significant figures from data with 3.
  • Leaving out the unit, or writing "3.06" with no m.

✅ 15. When to Use This Equation

Use λ = v/f when

  • The wave has one clear frequency (a radio carrier, a laser, a tuning fork).
  • You know the wave speed in that medium, or it is light or radio in vacuum or air.
  • The medium is not dispersive, or you know v at that frequency.
  • You need antenna, pipe, string or cable lengths (λ/2, λ/4).

Use something else when

  • You know a photon’s energy, not its frequency: λ = hc/E.
  • It is a moving particle with mass: λ = h/p (de Broglie).
  • You want the peak of thermal radiation: λmax = b/T.
  • Water waves in shallow water: v = √(gd), then λ = vT.
  • A guided wave in a hollow metal waveguide: the guide wavelength is longer than the free-space one and needs the cut-off frequency.

Four real examples

  • Ham radio: cutting a 2 m band dipole at 146 MHz: λ/2 = 1.03 m before end-effect shortening.
  • Chemistry: a hydrogen emission line at 656.3 nm has a photon energy of 1.89 eV.
  • Music: a bass note of 41.2 Hz in a room at 20 °C is 8.33 m long, longer than most rooms.
  • Medicine: a 7.5 MHz ultrasound probe in tissue has λ = 0.205 mm, which sets its fine detail limit.

Decision tree

  1. Is it light, radio or another electromagnetic wave? If you know f, use λ = v/f with v = c/n. If you know E, use λ = hc/E.
  2. Is it a particle with mass (electron, neutron, proton)? Use λ = h/p, and the relativistic momentum above about 10 kV for electrons.
  3. Is it sound? Find v from the medium and temperature, then λ = v/f.
  4. Is it a water wave? Deep water: λ = gT²/2π. Shallow water: λ = T√(gd).
  5. Is it thermal glow from a hot object? Use λmax = b/T with T in kelvin.

🔧 16. Common Mistakes and Troubleshooting

My answer is a million times too big

Cause: the frequency was entered in MHz but treated as Hz. Fix: pick MHz in the unit box, or multiply by 10⁶ before dividing.

My wavelength is 1000 times off for light

Cause: nm and μm mixed up. 1 nm = 10⁻⁹ m, 1 μm = 10⁻⁶ m. Fix: visible light must come out between 380 and 750 nm.

My sound wavelength is a million times too large

Cause: the medium is still "vacuum", so c was used for sound. Fix: choose sound in air and set the temperature.

The book answer differs in the third digit

Cause: the book used c = 3.00 × 10⁸ m/s, 340 m/s for sound, or hc = 1240 eV nm. Fix: use the same constant as the question, or round to 2 significant figures.

The calculator says "not physical"

Cause: a zero or negative frequency, wavelength or energy, a temperature at or below 0 K, or a particle speed at or above c. Fix: check the sign and the unit; frequency, wavelength and absolute temperature are always positive.

My antenna made from the calculated length is out of tune

Cause: real antennas resonate a few percent shorter than the free-space λ/2 or λ/4. Fix: cut slightly long and trim, or apply a factor of about 0.95; inside coax use the cable’s velocity factor.

My electron wavelength disagrees with the 1.226/√V shortcut

Cause: above a few kilovolts the electron is relativistic and the shortcut overestimates λ (by 4.9% at 100 kV). Fix: use the relativistic value in the table.

Excel shows #VALUE! or #N/A

Cause: text such as "98.1 MHz" in a number cell, or a misspelt CONVERT unit. Fix: keep only the number in the cell and the unit in the header.

My CSV upload shows no columns

Cause: the cells contain units or commas as decimal separators (3,06). Fix: save numbers only, with a full stop as the decimal point.

Wien’s law gives a strange answer for the Sun

Cause: temperature typed in °C with the unit left on K, or vice versa. Fix: the Sun’s surface is about 5772 K, which gives 502 nm.

⚠️ 17. Assumptions and Limitations

Assumptions

  1. A single frequency. v = fλ describes one pure tone or carrier. A pulse contains many frequencies; the calculator gives the wavelength of the centre frequency only.
  2. Known, constant wave speed. If the real medium is warmer than you set (sound), v and λ are underestimated by about 0.17% per °C.
  3. Refractive index fixed. n changes with wavelength (dispersion). Using n at 589 nm for blue light slightly overestimates the in-glass wavelength, because n is larger for blue.
  4. Ideal blackbody for Wien. Real surfaces have emissivity below 1. That lowers the brightness but barely moves the peak, so λmax stays close to b/T.
  5. Deep water for ocean waves. When depth is less than about λ/2, the deep-water formula overestimates the wavelength; in very shallow water the true λ is T√(gd).
  6. Free-space antenna lengths. Real antennas resonate 2 to 5% shorter, so the calculated λ/2 and λ/4 overestimate the cut length.
  7. Constants. c, h and e are exact; electron and proton masses are CODATA 2022 values. Since 2019 the vacuum permeability is not exactly 4π × 10⁻⁷ N/A², which affects answers only in the tenth significant figure.

Limitations

  1. Waveguides and fibres have a guide wavelength that differs from v/f; use a waveguide calculator with the cut-off frequency.
  2. Doppler shift is not included: a moving source changes the observed frequency and wavelength. Use a Doppler effect calculator.
  3. Humidity and pressure are not included in the sound-speed formula; humid air is slightly faster (Cramer, 1993).
  4. Air wavelengths for light use one n = 1.000293; precision spectroscopy uses the Edlén or Ciddor equations with temperature, pressure and humidity.
  5. Colour names are approximate and do not model human colour vision.

🏁 18. Conclusion

___ Press Calculate to add a summary of your own values here.

What the answer is

A wavelength calculator turns a frequency, a photon energy, a particle’s energy or a temperature into a length in metres. The core relation is v = fλ: divide the wave speed by the frequency. The headline example, an FM station at 98.1 MHz, gives 3.06 m, with a half-wave dipole of 1.53 m and a quarter-wave antenna of 0.764 m.

What it means physically

Wavelength is the spacing of the repeating pattern. It sets the colour of light, the size of an antenna, how sound bends round a doorway, the detail an ultrasound scan can resolve, and whether an electron beam can see an atom. Frequency belongs to the source and never changes between media; the wavelength shrinks when the wave slows down.

Watch out for

Most wrong answers come from prefixes (MHz, nm, μm), from using the speed of light for sound, from °C in Wien’s law, and from E in eV mixed with h in J s. The units check and the substitution check on every answer catch these before you write them down.

Next steps

Use the photon energy, the wavelength or the speed you found in the next problem: diffraction angles, standing waves, the photoelectric effect or kinetic energy. The related tools in Section 21 take you there. Bookmark this wavelength calculator for any wave, from radio to electrons.

❓ 19. Frequently Asked Questions

How do you calculate wavelength?

Divide the wave speed by the frequency: λ = v/f. For a 98.1 MHz radio wave, λ = 299 792 458 m/s ÷ 98 100 000 Hz = 3.06 m. Convert the frequency to hertz first so the answer comes out in metres.

What is the formula for wavelength?

The formula for wavelength is λ = v/f, from the wave equation v = fλ. For photons λ = hc/E, for particles λ = h/p, and for the peak of thermal radiation λmax = b/T.

How do you convert frequency to wavelength?

Divide the wave speed by the frequency in hertz. For radio waves, a quick version is λ in metres = 300 ÷ f in MHz, so 150 MHz is 2.00 m. For sound in air at 20 °C, divide 343 m/s by the frequency.

How do you convert wavelength to frequency?

Divide the wave speed by the wavelength in metres: f = v/λ. Red laser light at 633 nm has f = 299 792 458 ÷ 633 × 10⁻⁹ = 4.74 × 10¹⁴ Hz (474 THz).

What is the relationship between wavelength and frequency?

Wavelength and frequency are inversely proportional at a fixed wave speed: double the frequency and the wavelength halves. Their product is always the wave speed, v = fλ.

What is the SI unit of wavelength?

The SI unit of wavelength is the metre (m). Light is usually given in nanometres (1 nm = 10⁻⁹ m), infrared in micrometres, and X-rays and electron waves in picometres or ångströms (1 Å = 0.1 nm).

How do you find wavelength from energy?

Use λ = hc/E, with E in joules per photon. With E in electronvolts the shortcut is λ in nm = 1239.84 ÷ E, so a 2.00 eV photon has λ = 620 nm. Divide kJ/mol values by Avogadro’s number first, or use λ in nm = 119 627 ÷ E in kJ/mol.

How do you convert eV to nm?

Divide 1239.84 by the energy in eV: λ(nm) = 1239.84 / E(eV). For example, 1.42 eV (the band gap of GaAs) gives 873 nm, in the near infrared.

How do you convert wavenumber to wavelength?

Wavelength is the reciprocal of wavenumber. With the wavenumber in cm⁻¹, λ in μm = 10 000 ÷ wavenumber, so a 1715 cm⁻¹ carbonyl band is at 5.83 μm.

How do you calculate the wavelength of sound?

Divide the speed of sound by the frequency. In dry air at 20 °C the speed is 343.2 m/s, so concert A at 440 Hz has λ = 0.780 m. The speed rises by about 0.6 m/s for each °C warmer.

Does wavelength change when light enters water or glass?

Yes, the wavelength gets shorter by the refractive index, but the frequency stays the same. Green light of 532 nm in vacuum is 399 nm in water (n = 1.333) and 350 nm in glass (n = 1.52).

How do you calculate the de Broglie wavelength of an electron?

Use λ = h/p, where p is the electron’s momentum. For an electron accelerated through V volts at low voltage, λ in nm ≈ 1.226 ÷ √V, so 100 V gives 0.123 nm. Above about 10 kV use the relativistic momentum, as this calculator does.

How do you calculate half wavelength and quarter wavelength for an antenna?

Find λ = c/f, then divide by 2 or 4. At 433.92 MHz, λ = 0.691 m, so a half-wave dipole is about 0.345 m and a quarter-wave whip about 0.173 m, trimmed a few percent shorter in practice.

What is velocity factor and how does it change wavelength in coax?

Velocity factor (VF) is the wave speed in a cable as a fraction of c. A wavelength inside coax is VF times the free-space wavelength, so a 433.92 MHz quarter-wave stub in VF 0.66 cable is 11.4 cm instead of 17.3 cm.

How do you find the peak wavelength from temperature?

Use Wien’s displacement law, λmax = b/T with b = 2.898 × 10⁻³ m K and T in kelvin. The Sun at 5772 K peaks at 502 nm, and the human body at 310 K peaks near 9.35 μm in the infrared.

What colour is a wavelength of 550 nm?

A wavelength of 550 nm looks green, close to the peak of human daytime vision. Roughly, 380 to 450 nm is violet, 450 to 485 nm blue, 500 to 565 nm green, 565 to 590 nm yellow, 590 to 625 nm orange and 625 to 750 nm red.

How do you calculate wavelength in Excel?

Put the frequency in Hz in a cell and divide the speed of light by it, for example =299792458/B2. For a frequency in MHz use =299792458/(B2*10^6), which returns 3.056 for 98.1 MHz. Section 9 shows the whole sheet.

How do you calculate wavelength in Python?

Import c from scipy.constants and divide: lam = c / f with f in Hz. NumPy arrays let you do a whole list at once, and f"{lam:#.3g}" prints 3 significant figures. Section 11 has a complete script.

How do you calculate wavelength in R?

Divide 299792458 by the frequency in Hz, for example 299792458 / 98.1e6, which prints 3.055988. Use signif(x, 3) to round. Section 10 has a full base-R script with a 300 dpi plot.

How do you calculate wavelength on a scientific calculator?

Type the speed, divide, then type the frequency using the power-of-ten key: 299792458 ÷ 98.1 ×10ˣ 6 = gives 3.055988359. The key is labelled ×10ˣ on Casio models and EE on many Texas Instruments models.

📑 20. Cite This Tool

APA 7th edition
Pushbanathan, R. (2026). Wavelength calculator [Interactive physics tool]. StatsUnlock. https://statsunlock.com/wavelength-calculator/ (accessed November 24, 2026)
BibTeX
@misc{statsunlock_wavelength_2026, author={Pushbanathan, Reegan}, title={Wavelength Calculator}, year={2026}, publisher={StatsUnlock}, note={Interactive physics tool, accessed 2026-11-24}, url={https://statsunlock.com/wavelength-calculator/}}
Methods wording
Wavelengths were calculated from frequency using the wave equation, lambda = v / f, with c = 299 792 458 m/s and h = 6.62607015e-34 J s (CODATA 2022, exact), using the StatsUnlock Wavelength Calculator (Pushbanathan, 2026). Results were reported to the number of significant figures in the input data.

📖 22. Glossary of Terms

TermPlain-English meaningSI unit
AmplitudeThe height of the wave from the centre line. It does not affect wavelength.depends on the wave (m for water)
Angular frequency (ω)2π times the frequency.rad/s
Band gapThe energy a semiconductor needs to emit or absorb a photon; sets an LED’s colour.J (usually eV)
BlackbodyAn ideal object that absorbs all light and glows with a spectrum set only by its temperature.–
CrestThe highest point of a wave.–
de Broglie wavelengthThe wavelength of a moving particle, λ = h/p.m
DispersionWhen the wave speed depends on frequency, as in glass or deep water.–
Electromagnetic waveLight, radio, X-rays and so on; travels at c in vacuum.–
Electronvolt (eV)The energy gained by one electron crossing 1 V; 1.602176634 × 10⁻¹⁹ J.J
Frequency (f)How many cycles pass a point each second.Hz
Hertz (Hz)One cycle per second.1/s
MediumThe material a wave travels through.–
Momentum (p)Mass times velocity (relativistic at high speed).kg m/s
Nanometre (nm)One billionth of a metre; the usual unit for light.10⁻⁹ m
Period (T)The time for one complete cycle, 1/f.s
PhotonA packet of electromagnetic energy, E = hf.–
Planck constant (h)Links a photon’s energy to its frequency; exact.J s
Refractive index (n)How many times slower light travels in a material than in vacuum.no unit
Speed of light (c)299 792 458 m/s in vacuum, exact.m/s
TroughThe lowest point of a wave.–
Velocity factor (VF)Wave speed in a cable as a fraction of c.no unit
Wave speed (v)How fast the wave pattern travels, v = fλ.m/s
Wavelength (λ)The distance between two matching points on a wave, such as two crests.m
WavenumberThe number of waves per unit length, 1/λ (spectroscopy uses cm⁻¹).m⁻¹
Wien’s lawThe peak wavelength of a blackbody equals b/T.m

📚 23. References

Peer-reviewed sources for the constants, equations, wave speeds and teaching methods used in this wavelength calculator. Every DOI was checked against Crossref on November 24, 2026.

  1. Mohr, P. J., Newell, D. B., Taylor, B. N., & Tiesinga, E. (2025). CODATA recommended values of the fundamental physical constants: 2022. Reviews of Modern Physics, 97(2), 025002. https://doi.org/10.1103/RevModPhys.97.025002
  2. Young, T. (1804). The Bakerian Lecture: Experiments and calculations relative to physical optics. Philosophical Transactions of the Royal Society of London, 94, 1–16. https://doi.org/10.1098/rstl.1804.0001
  3. Planck, M. (1901). Ueber das Gesetz der Energieverteilung im Normalspectrum. Annalen der Physik, 309(3), 553–563. https://doi.org/10.1002/andp.19013090310
  4. Einstein, A. (1905). Über einen die Erzeugung und Verwandlung des Lichtes betreffenden heuristischen Gesichtspunkt. Annalen der Physik, 322(6), 132–148. https://doi.org/10.1002/andp.19053220607
  5. Millikan, R. A. (1916). A direct photoelectric determination of Planck’s “h”. Physical Review, 7(3), 355–388. https://doi.org/10.1103/PhysRev.7.355
  6. Compton, A. H. (1923). A quantum theory of the scattering of X-rays by light elements. Physical Review, 21(5), 483–502. https://doi.org/10.1103/PhysRev.21.483
  7. de Broglie, L. (1924). A tentative theory of light quanta. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 47(278), 446–458. https://doi.org/10.1080/14786442408634378
  8. Davisson, C., & Germer, L. H. (1927). Diffraction of electrons by a crystal of nickel. Physical Review, 30(6), 705–740. https://doi.org/10.1103/PhysRev.30.705
  9. Thomson, G. P., & Reid, A. (1927). Diffraction of cathode rays by a thin film. Nature, 119(3007), 890. https://doi.org/10.1038/119890a0
  10. Edlén, B. (1966). The refractive index of air. Metrologia, 2(2), 71–80. https://doi.org/10.1088/0026-1394/2/2/002
  11. Ciddor, P. E. (1996). Refractive index of air: New equations for the visible and near infrared. Applied Optics, 35(9), 1566–1573. https://doi.org/10.1364/AO.35.001566
  12. Daimon, M., & Masumura, A. (2007). Measurement of the refractive index of distilled water from the near-infrared region to the ultraviolet region. Applied Optics, 46(18), 3811–3820. https://doi.org/10.1364/AO.46.003811
  13. Cramer, O. (1993). The variation of the specific heat ratio and the speed of sound in air with temperature, pressure, humidity, and CO₂ concentration. The Journal of the Acoustical Society of America, 93(5), 2510–2516. https://doi.org/10.1121/1.405827
  14. Del Grosso, V. A., & Mader, C. W. (1972). Speed of sound in pure water. The Journal of the Acoustical Society of America, 52(5B), 1442–1446. https://doi.org/10.1121/1.1913258
  15. Smith, T., & Guild, J. (1931). The C.I.E. colorimetric standards and their use. Transactions of the Optical Society, 33(3), 73–134. https://doi.org/10.1088/1475-4878/33/3/301
  16. Stockman, A., & Sharpe, L. T. (2000). The spectral sensitivities of the middle- and long-wavelength-sensitive cones derived from measurements in observers of known genotype. Vision Research, 40(13), 1711–1737. https://doi.org/10.1016/S0042-6989(00)00021-3
  17. Wittmann, M. C., Steinberg, R. N., & Redish, E. F. (1999). Making sense of how students make sense of mechanical waves. The Physics Teacher, 37(1), 15–21. https://doi.org/10.1119/1.880142
  18. Hestenes, D., Wells, M., & Swackhamer, G. (1992). Force concept inventory. The Physics Teacher, 30(3), 141–158. https://doi.org/10.1119/1.2343497
  19. Staacks, S., Hütz, S., Heinke, H., & Stampfer, C. (2018). Advanced tools for smartphone-based experiments: phyphox. Physics Education, 53(4), 045009. https://doi.org/10.1088/1361-6552/aac05e
  20. Parolin, S. O., & Pezzi, G. (2015). Kundt’s tube experiment using smartphones. Physics Education, 50(4), 443–447. https://doi.org/10.1088/0031-9120/50/4/443
STATS UNLOCK · statsunlock.com · Wavelength Calculator
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Important Plots & Charts

Most Popular