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.

ƒx
(1 inch).to(mm)= 25.4 mm
ƒx
(3 ft + 4 inch).to(cm)= 101.6 cm
ƒx
(60 mi/h).to(km/h)= 96.5606 km/h

2. Power, pressure and volume

Horsepower, psi, atmospheres, US gallons and BTU per hour are all built in.

ƒx
(100 hp).to(kW)= 74.57 kW
ƒx
(14.7 psi).to(kPa)= 101.353 kPa
ƒx
(1 atm).to(bar)= 1.01325 bar
ƒx
(1 gal).to(L)= 3.78541 l
ƒx
(1 BTU/h).to(W)= 0.293071 W

3. Energy and force

Compound units like ft·lbf convert just like simple ones.

ƒx
(1 kWh).to(MJ)= 3.6 MJ
ƒx
(1 lbf).to(N)= 4.44822 N
ƒx
(1 ft*lbf).to(J)= 1.35582 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.

ƒx
5 km + 2 kgCannot convert from 'kilometer' ([length]) to 'kilogram' ([mass])

Make 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

Start your first worksheet

Free during early access, no credit card. Open a canvas and watch your math add up in the right units.