Speed of Sound

Calculate the speed of sound in air, water, steel, or concrete at a given temperature.

⚡ 1 credit per call

Try it

Fill in the fields below and hit Send.

Why use this

LLMs approximate the speed of sound unreliably. Use this for accurate acoustic calculations, Mach number references, or physics simulations.

Input

Field Type Required Description
temp_c number Temperature in Celsius (−100 to 1000)
medium string One of air, water, steel, concrete. Defaults to air

Examples

  • Air at 20°C → ~343 m/s (1235.5 km/h)
  • Water at 20°C → ~1482 m/s (5335.2 km/h)
  • Steel → 5100 m/s (constant)
  • Concrete → 3400 m/s (constant)

Response

Field Type Description
medium string The medium used
temp_c number Input temperature
speed_ms number Speed in metres per second
speed_kmh number Speed in kilometres per hour
mach_1_ms number Mach 1 reference speed (equals speed_ms)

API Reference

Endpoint

POST https://api.lightningapi.tools/speed-of-sound

Required headers

Authorization: Bearer <apiKey>
Content-Type: application/json

Example request

{
  "temp_c": 20,
  "medium": "air"
}

Example response

{
  "medium": "air",
  "temp_c": 20,
  "speed_ms": 343.2,
  "speed_kmh": 1235.5,
  "mach_1_ms": 343.2
}