Posted in

How to calculate the speed of sound for ultrasonic transducers?

If you’ve ever worked with ultrasonic transducers—whether you’re an engineer designing a non-destructive testing (NDT) system, a technician calibrating a level sensor, or a hobbyist building a distance-measuring robot—you know that sound speed isn’t a random number you can pull from a datasheet. For years, I’ve had customers stop by our ultrasonic transducer shop, confused why their setup isn’t performing as expected, only to find out they used the wrong speed of sound for their material or environment. As a transducer supplier, I can’t stress enough how this single calculation can make or break your project. It’s not just a formula; it’s a foundational step that turns a generic transducer into a tool that works for your specific use case. Let me walk you through how to calculate it accurately, why small mistakes here lead to big headaches later, and how we can help when you need to get it right. Ultrasonic Transducer

First, let’s start with the basics: what is the speed of sound, really? Unlike light, which travels at a constant speed through a vacuum, sound is a mechanical wave—it needs a medium to move through. It travels by compressing and expanding the particles of that medium, so its speed depends entirely on two properties of that medium: density and elasticity. In simpler terms, the stiffer the medium and the less dense it is, the faster sound will move. That’s why sound zooms through solid metal (around 5,000 m/s) way faster than it does through air (about 343 m/s at room temperature), and why it’s almost nonexistent in the vacuum of space. For ultrasonic transducers, which work at frequencies above human hearing (typically 20 kHz to several MHz), this rule holds true, but we have to account for the specifics of the medium they’re interacting with. Most of the time, customers come to us working with either gases, liquids, or solids, so I’ll break down calculations for each, plus the factors that skew numbers when temperatures, pressure, or material conditions change.

Let’s start with the most common use case we see: air-based ultrasonic transducers for distance measurement, parking sensors, or level gauges for dust or small particles. When you’re working in air, the speed of sound isn’t a fixed 343 m/s. That number is only at 20°C (68°F) and standard atmospheric pressure (101.325 kPa). If your application is in a cold warehouse at 0°C, that drops to 331 m/s; if you’re testing a system in a 35°C summer warehouse, it climbs to 352 m/s. The formula for speed of sound in an ideal gas (which air approximates for most industrial purposes) is straightforward: v = √(γ * R * T / M). Let’s unpack that: γ is the adiabatic index, a constant for air (1.4), R is the universal gas constant (8.314 J/mol·K), T is the absolute temperature in Kelvin (so add 273.15 to your Celsius temperature), and M is the molar mass of air (0.02897 kg/mol). Plugging in 20°C (293.15 K), you get √(1.4 * 8.314 * 293.15 / 0.02897) = ~343 m/s, which checks out. Here’s the catch I see customers mess up all the time: if your setup is in a pressurized environment, like a confined tank with compressed air, pressure doesn’t actually affect the speed. Wait, why? Because as pressure goes up, air density goes up too—those two cancel each other out, leaving speed unchanged. Only temperature matters for gases. If you ignore that and use 343 m/s for a 40°C outdoor sensor, your distance calculations will be off by about 3%, which might not seem like much, but for a precision level gauge measuring 10 meters, that’s 30 cm of error—enough to cause a batch of product to be rejected or a robot to miss its target.

Next up: liquid mediums, like water for flow meters, ultrasonic cleaning systems, or medical ultrasound probes. Sound travels much faster in liquids than gases, and the formula here is a bit different because we’re dealing with liquid elasticity. The speed of sound in a liquid is v = √(K / ρ), where K is the bulk modulus of the liquid (a measure of how resistant it is to compression) and ρ is the liquid’s density. For pure water at 20°C, K is ~2.2 GPa, ρ is 1000 kg/m³, so that gives v = √(2.2e9 / 1000) = ~1480 m/s. But here, temperature has a bigger impact than it does in air. If you’re working with hot water for a industrial cleaning system, at 80°C, the speed jumps to ~1550 m/s, because as water warms, its density decreases and its bulk modulus changes in a way that increases sound speed—something we’ve seen cause flow meter errors when technicians use room-temperature values for water in a high-temperature process. Also, if your liquid has impurities, like salt in seawater or additives in hydraulic fluid, that changes the calculation. Seawater’s speed of sound is around 1500 m/s at 20°C, but it goes up with salinity and temperature, so a saltwater level gauge needs to adjust for that, not just use pure water’s number. We recently had a customer who built a fish-finder transducer for saltwater, and he initially used the pure water speed from a datasheet—his readings were off by 2 meters until he adjusted for salinity, which we helped him figure out by sharing our in-house material property cheat sheet for common liquids.

Then there are solid mediums, which are where NDT transducers, thickness gauges, and structural health monitoring systems live. This is where calculations get a bit more nuanced, because solids support two types of ultrasonic waves: longitudinal (compression) waves, which are the most common, and transverse (shear) waves, which travel slower. For most thickness gauging, you care about longitudinal waves, since they’re easier to generate and measure. The formula for longitudinal speed in a solid is v = √((E * (1 – ν)) / (ρ * (1 + ν) * (1 – 2ν))), where E is Young’s modulus (stiffness of the material), ν is Poisson’s ratio (how much the material deforms sideways when stretched), and ρ is density. For aluminum, which is common in aerospace and automotive NDT, this works out to ~6420 m/s at 20°C; for steel, it’s ~5960 m/s. But again, temperature is a factor here—if you’re testing a steel pipeline that’s at 200°C, the speed drops to around 5700 m/s, because high temperature softens the material, lowering its Young’s modulus. We had an NDT customer last year who was inspecting a hot oil pipeline and using room-temperature steel speed; his thickness calculations were wrong, leading him to mark a pipe as unsafe when it was actually fine, and vice versa on another pipe. We worked with him to adjust his calculation using the temperature correction factors we use for our high-temperature transducers, and he’s since been using that as a standard step for all his field work.

Now, here’s where a lot of people skip a critical step: accounting for the transducer itself. Ultrasonic transducers don’t just send sound straight through the target medium—they have a matching layer, a piezoelectric element, and a delay line (if it’s a focused transducer) that the sound travels through before it hits the target. So if you’re calculating the time it takes for a sound pulse to go from the transducer, reflect off the target, and come back, you can’t just use the target medium’s speed. You have to break the total path into segments: time in the transducer’s internal materials plus time in the target medium. For example, if you’re using a delay-line transducer for corrosive liquid level measurement, the delay line is usually a thin strip of PTFE or sapphire. Let’s say the delay line is 5 mm thick, sound speed in PTFE is 1350 m/s, and target liquid is water at 1500 m/s, with a measured round-trip time of 12 microseconds. The total time is time in delay line (2 * 0.005 m / 1350 m/s) plus time in water (2 * d / 1500 m/s). Solving for d gives ~8.7 cm, which is correct. If someone forgot the delay line, they’d calculate d using only water’s speed and get a distance of 9 cm—off by 3 mm, which might not matter for a big tank, but it’s a difference for a small process vessel. That’s why we always include the material properties of our transducers’ components in our product datasheets; it’s a detail most suppliers gloss over, but we know it’s essential for accurate calculations.

Another common mistake is ignoring non-ideal medium conditions. For example, if your air path has high humidity, that changes the speed of sound—humid air is slightly less dense than dry air, so sound travels faster, about 0.1 m/s higher per 1% relative humidity at 20°C. If you’re working with a transducer in a humid greenhouse for plant height measurement, that small shift can add up over long distances. Or if your solid medium has grain boundaries, like cast steel vs. forged steel, the speed can vary by a few percent, because grain boundaries scatter sound and change the effective elasticity. That’s why for NDT transducers, we test each batch of transducers with our own speed calibration setups to make sure they’re consistent—we can’t control the customer’s medium, but we can give them a transducer that’s calibrated to perform with their calculation.

Let’s talk about how we approach this at our shop, because we don’t just sell transducers—we help customers solve problems. When a customer reaches out with a project, the first thing we ask is: what medium are you working with, what’s its temperature range, what’s the path length, and how accurate do you need the readings to be? For small, low-accuracy distance sensors, we might recommend a pre-calibrated transducer with a fixed speed, but for precision applications like medical ultrasound or NDT, we’ll provide a custom transducer with a built-in calibration function that adjusts speed based on real-time temperature readings from a small sensor. We also share our in-house calculation tools—simple spreadsheets that let customers input their medium, temperature, and material properties, and it spits out the correct speed. Last quarter, we had a customer building a ultrasonic flow meter for a chemical plant; he was using a generic formula for water, but his process uses a mix of water and acid, which changes the bulk modulus. We helped him test a small sample of his mix in our lab, calculated the exact speed for that mixture, and recommended a transducer with a wider frequency range to handle the slightly variable medium. The result? His flow meter was accurate to within 0.5%, which is exactly what his process required.

I can’t wrap this up without addressing a common question: why not just use the speed of sound from a textbook? Textbook values are for ideal conditions, but industrial and real-world setups are rarely ideal. A transducer that works in a lab at 20°C might fail in a factory that swings between 0°C and 40°C, or in a tank with 90% humidity, or in a liquid with 10% impurities. The calculation isn’t a one-time thing—it needs to be adjusted for your specific operating conditions. And if you’re not sure about the calculation, that’s where we come in. We’ve been working with ultrasonic transducers for over a decade, so we’ve helped hundreds of customers work through speed calculations, whether it’s for a new project or troubleshooting an existing setup that’s giving bad readings.

If you’re designing a new system, calibrating an existing transducer, or just confused about why your ultrasonic readings are off, don’t guess at the speed of sound. It’s too critical a detail to get wrong. We can walk you through the formula, adjust for your medium’s conditions, and provide a transducer calibrated to work with your exact calculation. Whether you need a standard off-the-shelf unit or a custom transducer for a tricky application, we’re here to help. Reach out to our team to discuss your project, and we’ll make sure you get the speed right the first time.

Piezoelectric Ceramics References

  1. “Speed of Sound in Gases, Liquids, and Solids,” Engineering Toolbox, accessed 2024.
  2. Ultrasonic Transducer Fundamentals, Olympus NDT, 2022.
  3. “Effect of Temperature and Salinity on Speed of Sound in Seawater,” Journal of the Acoustical Society of America, Vol. 135, No. 4, 2014.
  4. Piezoelectric Transducer Design for Industrial Applications, Springer, 2021.

Shenzhen Soner Technology Co., Ltd.
Shenzhen Soner Technology Co., Ltd. is one of the most professional ultrasonic transducer manufacturers and suppliers in China, specialized in providing high quality customized service. Please feel free to wholesale ultrasonic transducer for sale here from our factory.
Address: Room 1510, Hubei Baofeng Bldg., No.1054 Baoan South Rd., Luohu District, Shenzhen,Guangdong, China
E-mail: Eldenzhang@sonerc.com
WebSite: https://www.sonerc.com/