Engineering unit conversions
Length, speed, power, pressure, volume, energy and force conversions — plus the error you get for mismatched units.
Free. You get your own copy of this worksheet to change and extend (sign-in required).
Short answer
How do you convert engineering units with a unit-aware calculator?
In Calcanvas you convert a value by calling .to() with the target unit: (1 inch).to(mm) is 25.4 mm, (60 mi/h).to(km/h) is 96.56 km/h, (100 hp).to(kW) is 74.57 kW and (14.7 psi).to(kPa) is 101.35 kPa. Adding incompatible units, such as km + kg, is an error rather than a wrong number.
The worksheet
Every value below is the output of the Calcanvas compute engine for exactly these cells, evaluated top to bottom. Variables carry their units from one cell to the next.
1. Length and speed
Mixed imperial lengths add up before converting.
(1 inch).to(mm)(3 ft + 4 inch).to(cm)(60 mi/h).to(km/h)2. Power, pressure and volume
Horsepower, psi, atmospheres, US gallons and BTU per hour are all built in.
(100 hp).to(kW)(14.7 psi).to(kPa)(1 atm).to(bar)(1 gal).to(L)(1 BTU/h).to(W)3. Energy and force
Compound units like ft·lbf convert just like simple ones.
(1 kWh).to(MJ)(1 lbf).to(N)(1 ft*lbf).to(J)4. Dimension checking
The red cell below is meant to fail: you can't add a length to a mass, so you get an error instead of a wrong number.
5 km + 2 kgMake it yours
Open this example as a board and try a few changes. Results update as you type:
- Convert your own values — any cell accepts .to(unit).
- Try (1 mile).to(km) or (65 mph).to(m/s).
- Assign a converted value to a variable and reuse it below.
More examples
- Pipe pressure drop calculator (Darcy–Weisbach) — Reynolds number, Blasius friction factor, Darcy–Weisbach pressure drop and head loss for water in a 50 mm pipe.
- Heat loss through a wall (U-value) calculator — Heat flow through 12 m² of wall at U = 0.3 W/m²K and a 20 K temperature difference, in watts and kWh.
- Ohm's law and resistor circuit calculator — Series and parallel resistance, current, power and a voltage divider for two resistors on a 12 V supply.