Skip to main content
CalcTulip

Unit converter

Choose a category, a value and the two units. Conversions use exact definitions, and temperature is converted with the offsets it needs rather than just a multiplier.

Unit converter

Formula, assumptions and rounding

Calculator type
Global
Formula
  • Length, mass, area, volume, speed and data size: result = value x factor(from) / factor(to), where each factor is the unit's exact size in the category's base unit.
  • Temperature: first convert to degrees Celsius (F to C: (F - 32) x 5/9; K to C: K - 273.15), then to the target (C to F: C x 9/5 + 32; C to K: C + 273.15). Scales have different zero points, so a simple multiplication would be wrong.
Assumptions
  • Current category (Length): base unit is the metre. Inch, foot, yard and mile use the international definitions (1 in = 25.4 mm exactly).
  • Conversion factors are exact by definition, except those derived from them. Intermediate values keep 60 digits.
  • Temperatures below absolute zero (-273.15 °C, -459.67 °F, 0 K) are rejected.
Units
Length: mm to nautical mile. Mass: mg to stone. Temperature: °C, °F, K. Area: mm² to mi². Volume: mL to US and imperial gallons. Speed: km/h, m/s, mph, knot, ft/s. Data: bit to TiB (decimal and binary).
Rounding
Results are rounded half away from zero to 10 significant digits and shown without exponent notation.
Last reviewed

Privacy: everything you enter is processed in your browser and is not sent to our servers. How we handle data

How to use Unit Converter

  1. Pick a category such as Length or Temperature.
  2. Enter the value and choose the unit to convert from and the unit to convert to.
  3. Select Convert, or use Swap units to go the other way.
  4. Check the factor notes under the tool if you need to know which definition of a unit is used.

Assumptions and limits

  • Results are rounded to 10 significant digits.
  • Gallons, quarts, pints, cups, fluid ounces, tablespoons and teaspoons are US customary; the imperial gallon is listed separately.
  • KB, MB, GB and TB are decimal (1000); KiB, MiB, GiB and TiB are binary (1024).
  • Temperatures below absolute zero are rejected. Currency and time are not converted here.

Frequently asked questions

How is temperature converted?
Fahrenheit and Kelvin have different zero points from Celsius, so the value is first converted to Celsius (F to C is (F - 32) x 5/9, K to C is K - 273.15) and then to the target scale.
Which mile, ounce and acre are used?
The international definitions: 1 mile is 1609.344 m, 1 lb is 0.45359237 kg (so 1 oz is 1/16 lb) and 1 acre is 4046.8564224 m².
Why do a gigabyte and a gibibyte differ?
A gigabyte is 1,000,000,000 bytes and a gibibyte is 1,073,741,824 bytes (1024 cubed). Storage makers usually use the decimal unit and some operating systems the binary one.
Are the conversions exact?
The factors are exact by definition, and the arithmetic keeps 60 digits. Only the displayed result is rounded to 10 significant digits.

Page last reviewed: