Physics

Wave Speed Calculator (v = fλ)

Solve for wave speed, frequency or wavelength — works for sound, light or any wave.

Real Larzscript running in your browser74 automated checksOpen source · MITNo sign-up · your inputs never leave your device

Wave speed, frequency and wavelength — pick what to solve for

Result
—
Period (1/f)
—
Show the Larzscript program that just ran
Run a calculation to see the exact program.

This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.

The formula

v = f λ

Worked example, computed above

440 Hz at 0.78 m wavelength: 343.2 m/s — the speed of sound in air at room temperature.

What is verified

Each of speed, frequency and wavelength round-trips exactly back out of the other two — see tests/test_emwaves.lz.

Frequently asked questions

What is the wave speed formula?

v = fλ — speed equals frequency times wavelength, for any wave. A 440 Hz sound wave (concert A) with a 0.78 m wavelength travels at 343.2 m/s — the familiar speed of sound in air.

Does this work for light too?

Yes, with v = c: green light at 500 THz (5×10⁽⁵ Hz) has a wavelength of 599.6 nm, which is exactly in the visible green range — the same formula, just a different (much faster) wave speed.

Why does wavelength shrink as frequency rises?

Because their product must stay equal to the wave's speed, which is fixed by the medium (or, for light in vacuum, by c) — higher frequency means the wave completes cycles faster, so each cycle fits into a shorter distance.

What is the period, and how does it relate?

T = 1/f — the time for one full cycle. It is not solved-for here directly but is reported alongside frequency since the two always go together.

Every number on this page is computed by the open-source larzscript-physics library (emwaves, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →