Why mixed units break formulas, and how a dimension check catches it

How converting every value to SI base units, checking that both sides of an equation have the same dimensions and solving numerically stops unit mistakes.

Open the Unit-safe formula sheet Free, in your browser, nothing uploaded.

Many wrong answers in science homework and lab reports are not wrong maths but wrong units: kilometres where the formula wanted metres, Celsius instead of kelvin, or a mass where a force belonged. This guide explains the two habits that prevent those mistakes, converting everything to one system of units and checking that both sides of an equation have the same dimensions, and how the Unit-safe formula sheet does both for you. For a single conversion, use the engineering unit converter; to see why units must balance, read through dimensional analysis checker; and for standard values such as the gas constant, look them up in physical constants.

What it is

SI base units. The International System of Units builds every unit from seven base units, including the metre (m), kilogram (kg), second (s), kelvin (K) and mole (mol). A newton is kg m s⁻² and a joule kg m² s⁻². Once every value is in these, any formula works with plain numbers.

Dimensions. The dimension of a quantity is the list of powers of the base units in it: speed is length ÷ time, force is mass × length ÷ time². An equation can only be true if both sides have the same dimensions. You can add metres to metres, but adding metres to seconds is meaningless. It catches a wrong unit before any number is believed.

Absolute temperature. Gas laws and radiation formulas need temperature measured from absolute zero, in kelvin. The formula sheet treats °C or °F written alone as absolute temperatures and converts them, so a gas law answer comes back correct even if you ask for it in °C.

Solving for any variable. Rather than rearranging by hand, the sheet works out “left side minus right side” for trial values of the unknown, looks for where it changes sign, and narrows that down. This finds every real answer, so a formula with a squared unknown gives both.

How to use it

  1. Under Your formulas, type one formula per line, such as p * V = n * R * T. Use * for times and ^ for powers; sqrt(), sin(), ln() and pi work.
  2. Under Values and units, give each variable a number and a unit: 101.325 and kPa.
  3. Leave the value empty for the one you want, and type the unit you want it in.
  4. Read the answer and the working: each value in SI, the units check, and the solved value.
  5. Use Solve for on a card to pick a different unknown, or fill every value to check that the two sides agree.
  6. Save the sheet (JSON) keeps your formulas as a file; Open a saved sheet brings them back.

A worked example

A gas law in Celsius. One mole of gas fills 22.4 L at 101.325 kPa. What temperature is it? With p * V = n * R * T, p = 101.325 kPa, V = 22.4 L, n = 1 mol, R = 8.314 J/(mol*K) and T left empty in degC, the sheet converts p to 101,325 Pa and V to 0.0224 m³, checks that both sides are kg m² s⁻² (joules), solves T = 272.995 K, and shows −0.155 °C. Typed straight into the formula, 0 °C would have given a nonsense answer.

A pendulum. For a pendulum that swings once every 2 s, Tp = 2 * pi * sqrt(L / g) with Tp = 2 s, g = 9.81 m/s^2 and L left empty in cm gives L = 99.40 cm, without rearranging the formula.

A squared unknown. How long does a cyclist take to cover 100 m starting at 5 m/s and speeding up at 2 m/s²? d = v*t + a*t^2/2 gives t = 7.81 s, and lists the other answer, −12.81 s, which has no physical meaning here.

A unit slip. In P = F / A, typing the force as 500 kg instead of 500 N stops the sheet with “The two sides do not have the same units: left is kg m⁻¹ s⁻², right is kg m⁻²”. With 500 N on 25 cm² it gives 29.01 psi (200,000 Pa).

Checked with the tools

All four examples were run through the sheet’s own solve() in src/lib/sci/unit-safe-formula-sheet.ts in Node, and gave the values above. The chart shows how the cyclist example is solved: it draws left side minus right side, built with the same parse() and compile() the sheet uses, and marks the two points that roots() found.

Solving d = v·t + a·t²/2 for tSolving d = v·t + a·t²/2 for t-100-50050100-15-10-50510t (s)Left side − right side (m)t = -12.81 st = 7.81 sd − (v·t + a·t²/2)Answers foundfibub.com
Figure 1. With d = 100 m, v = 5 m/s and a = 2 m/s², the sheet's root search (roots()) scans left side minus right side for a change of sign and narrows it down. It finds t = 7.808 s and t = -12.808 s; solve() shows the positive answer first. Worked out with the tool's own code.

The curve crosses zero twice, so there are two answers. The sheet shows the positive one first because, for times and lengths, that is almost always the one you want.

Where it is used

  • Physics and chemistry coursework. One sheet of formulas for a topic, reused for every question.
  • Lab reports. Values typed straight from the instrument in its own units, with the conversions shown.
  • Engineering estimates. Mixed imperial and metric supplier data, checked in one place.

Common mistakes

  • Typing a unit the converter does not know. Use standard symbols such as m/s^2, kg*m/s, degC.
  • Forgetting a unit on a constant. g needs m/s^2 and R needs J/(mol*K); without them the check cannot balance.
  • Typing a temperature change in degC. Written alone, degC is read as a temperature, so ΔT = 10 degC becomes 283.15 K. Type a change in K: a 10 °C rise is 10 K.
  • Leaving two values empty. The sheet can solve for one unknown at a time; it tells you which are missing.

Questions people ask

Does a balanced units check mean the formula is right? No. It catches many mistakes, but a missing factor such as ½ or 2π has no units, so it passes.

Why not just rearrange the formula? You can, but numeric solving avoids algebra slips and handles formulas that cannot be rearranged neatly.

Can I mix imperial and metric? Yes. Each value is converted on its own, so 100 ft at 3 m/s gives 10.16 s.

Sources

  • Units are read and converted with fibub's own unit converter code (SI base units and standard conversion factors, see the unit converter page); dimensions are checked with the dimensional analysis code. Dimension rules: BIPM, The International System of Units (SI Brochure, 9th edition), quantities and base dimensions (checked 2026-12-05).
  • Solving uses a numeric root search on the two sides in SI units, so any formula with a real answer can be solved for any variable, not only the left-hand one.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next