# Wavelength and frequency calculator > How long is a wave at a given frequency? Convert between wavelength and frequency for light, radio and sound. Calculate the wavelength from the frequency, or the frequency from the wavelength, for light, radio waves and sound in air or water, using λ = v / f. - Page: https://how.box/wavelength/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/wavelength/?s={s}&m={m}&f={f}&fu={fu}&l={l}&lu={lu}&t={t}&v={v} - `s` (wavelength or frequency): What to calculate: wavelength (default) or frequency. Example: `wavelength`. - `m` (light, sound_air, sound_water or custom): light, sound_air, sound_water or custom. Example: `light`. - `f` (number 0.001 to 1e15): Frequency in fu (solve wavelength). Example: `540`. - `fu` (hz, khz, mhz, ghz or thz): hz, khz, mhz, ghz or thz. Example: `thz`. - `l` (number 0.001 to 1e15): Wavelength in lu (solve frequency). Example: `550`. - `lu` (km, m, cm, mm, um or nm): km, m, cm, mm, um (micrometre) or nm. Example: `nm`. - `t` (number -50 to 100): Air temperature in °C (medium sound_air). Example: `20`. - `v` (number 0.001 to 3e8): Wave speed in m/s (medium custom). Example: `340`. Example answer: https://how.box/wavelength/?s=wavelength&m=light&f=540&fu=thz&l=550&lu=nm&t=20&v=340 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `wavelength_calculate`: Wavelength from frequency, or frequency from wavelength, for light, radio and sound: λ = v / f. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wavelength_calculate","arguments":{"solve":"wavelength","medium":"light","frequency":540,"frequency_unit":"thz","wavelength":550,"wavelength_unit":"nm","air_temperature_c":20,"speed":340}}}` - GET: https://how.box/mcp/run/wavelength_calculate?solve=wavelength&medium=light&frequency=540&frequency_unit=thz&wavelength=550&wavelength_unit=nm&air_temperature_c=20&speed=340 ## How it works A wave repeats itself after a distance called the wavelength, and it does so a number of times per second called the frequency. Those two are tied together by how fast the wave travels: the faster the wave, the longer each repeat. The relation is λ = v ÷ f, where λ is the wavelength in metres, v the speed of the wave in metres per second and f the frequency in hertz. Green light of 540 THz travels at the speed of light, 299 792 458 m/s, so its wavelength is 299 792 458 ÷ 5.4 × 10¹⁴ ≈ 555 nm. The same formula gives about 3 m for a 100 MHz FM radio signal and 0.78 m for a 440 Hz concert A in air at 20 °C. Light and radio waves use the speed of light in vacuum, which is exact by definition; in air it is only about 0.03 % lower, and in glass or water clearly lower, so use your own speed for those. Sound in dry air goes at √(1.4 × 287.05 × T) metres per second, with T the temperature in kelvin as in the International Standard Atmosphere (ISO 2533): 331.3 m/s at 0 °C and 343.2 m/s at 20 °C. In fresh water at 20 °C sound travels about 1482 m/s (Greenspan and Tschiegg, NIST, 1957; NPL's guide to the speed of sound in pure water). Humidity, pressure and salinity change these numbers slightly. ## FAQ **What is the wavelength of visible light?** About 380 to 750 nm, from violet to red. Green light near 540 THz has a wavelength of about 555 nm. **How do I convert a radio frequency to a wavelength?** Divide the speed of light by the frequency: 300 million metres per second ÷ 100 million hertz gives about 3 metres for 100 MHz. Choose light and radio waves and enter the frequency. **Why does the wavelength of sound change with temperature?** Sound travels faster in warmer air, while the frequency of a note stays the same, so each wave is longer. The effect is about 0.6 m/s per degree Celsius. **Does the wavelength change when a wave enters another medium?** Yes. The frequency stays the same, but the speed changes, so the wavelength changes in proportion. Light slows down in glass, so its wavelength there is shorter. **What is the 21 cm line?** Neutral hydrogen in space emits radio waves of 21 cm. Enter 21 cm as the wavelength and choose to find the frequency to get about 1.43 GHz. **Can I use this to choose the physical length of an antenna?** It gives the wavelength, not a finished antenna design. Physical length also depends on antenna type, materials and end effects. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)