Worked example
Example: Ultrasonic, 23 ms at 40 °C, 6 m tank. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Device | Ultrasonic in air (speed of sound at the temperature below) |
| Echo time (there and back) | 0.023000 s |
| Air temperature above the liquid (ultrasonic) | 40.000 °C |
| Distance from the sensor face to the tank bottom | 6.0000 m |
Applying the formula below gives:
| Result | Value |
|---|---|
| Wave speed used | 354.68 m/s |
| Distance to the surface c t / 2 | 4.0788 m |
| Level above the bottom | 1.9212 m |
Open this example in the calculator and change any input.
Formula
\(d = \frac{c\, t}{2}, \quad L = H - d, \quad c_{air} = \sqrt{\gamma\, \frac{R}{M} T}, \quad \gamma = \frac{c_p}{c_p - R/M}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(\text{device}\) | Device | - |
| \(t\) | Echo time (there and back) | s |
| \(T\) | Air temperature above the liquid (ultrasonic) | K |
| \(H\) | Distance from the sensor face to the tank bottom | m |
| \(c\) | Wave speed used | m/s |
| \(d\) | Distance to the surface c t / 2 | m |
| \(L\) | Level above the bottom | m |
Method and standards
Echo travel time.
Where it is used
- Level transmitter checks.
- Open channel and sump level.
Common mistakes
- Ignoring the dead band near the sensor.
- No temperature compensation for ultrasonic.
Assumptions and limits
- Dry air for ultrasonic; clear echo. Solvent or water vapour in the headspace changes the speed of sound (often by several per cent); there is no input for it, so use a reference target or the instrument's compensation.
References
- Time of flight d = c t / 2; speed of sound in dry air √(γ R T / M) with c_p from NIST Shomate data
Questions and answers
What level does a 23 ms ultrasonic echo give in a 6 m tank at 40 °C?
Sound travels about 355 m/s at 40 °C, so the surface is about 4.08 m down and the level about 1.92 m.
Why compensate temperature?
Speed of sound rises about 0.17 % per kelvin.
Is radar affected?
Hardly; it travels at the speed of light, only slowed slightly by dense vapours.
Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.