Mathematics

Unit Converter – Tutorial

On this page, you can find the logic, usage, and important details of the Unit Converter calculator.

Page
Tutorial
Quick jump
Follow the headings below
Hint
Results are for informational purposes

What Is Unit Conversion? Why Is It Everywhere?

Unit conversion means expressing the same physical quantity (length, mass/weight, temperature, etc.) using different units of measurement. Conversions like "100 cm = 1 m" say one thing: what you measured does not change — only the language (unit) you write it in changes. That's why you encounter it constantly in engineering, education, trade, health and everyday life.

1) Length Conversion (mm–cm–m–km)

Core Logic: Convert Everything Through a Common Unit

The most reliable approach to length conversion is to first convert everything to a single "reference unit." In the SI system this reference is most often the metre (m).

Formula (Length)
meters = amount × length[from]
out = meters ÷ length[to]
The length dictionary stores "how many metres is 1 unit?" for each unit.

SI and "Metric" Thinking

Metric units like mm–cm–m–km work on powers of 10: mm = 10-3 m, cm = 10-2 m, km = 103 m. This makes conversions fast and clean.

Examples

  • 100 cm → m: 100 × 0.01 = 1 m
  • 2500 mm → m: 2500 × 0.001 = 2.5 m
  • 3.2 km → cm: 3.2 × 1000 = 3200 m → 3200 ÷ 0.01 = 320,000 cm

Where Is It Used?

  • Construction/architecture: plans use mm, field work uses m.
  • Engineering: tolerances (mm), distances (m/km).
  • Education: core practice for measurement, unit and ratio concepts.

2) Mass/Weight Conversion (g–kg–lb)

The "weight" section converts what we call "weight" in everyday language; physically, the quantity being converted is mass. (In physics, weight is a force measured in Newtons; in practice we talk in kg/lb.)

Reference unit: kilogram (kg)

Same strategy: convert to kg first, then divide by the target unit factor.

Formula (Mass)
kg = amount × weight[from]
out = kg ÷ weight[to]
The weight dictionary stores "how many kg is 1 unit?". E.g. 1 lb = 0.45359237 kg.

Examples

  • 500 g → kg: 500 × 0.001 = 0.5 kg
  • 2 kg → g: 2 × 1 = 2 kg → 2 ÷ 0.001 = 2000 g
  • 10 lb → kg: 10 × 0.45359237 = 4.5359237 kg

Where Is It Used?

  • Nutrition/health: g–kg conversions appear constantly (protein, portions, scales).
  • Trade: lb is common in some countries, kg in most.
  • Sports: dumbbell/plate weights are sometimes in lb.

3) Temperature Conversion (C–F–K)

Temperature conversion is different from the others because it is not just "multiply and divide": there is also an offset (shift). For example, 0 on the Fahrenheit scale is not the same point as 0 on the Celsius scale. That's why the code uses two steps: first convert to Celsius, then convert to the target.

Celsius ↔ Fahrenheit

Formulas
C = (F − 32) × 5/9
F = C × 9/5 + 32

Celsius ↔ Kelvin

Kelvin is critical in science (especially physics/chemistry) because it is the absolute temperature scale: 0 K corresponds to "absolute zero." The scale step between Celsius and Kelvin is the same; only the starting point differs.

Formulas
C = K − 273.15
K = C + 273.15

Examples

  • 0°C → F: 0 × 9/5 + 32 = 32°F
  • 100°C → F: 100 × 9/5 + 32 = 212°F
  • 25°C → K: 25 + 273.15 = 298.15 K
  • 300 K → C: 300 − 273.15 = 26.85°C

Where Is It Used?

  • Everyday life: °C is common in Turkey; °F is widely used in the US.
  • Chemistry/physics: Kelvin is essential for gas laws, kinetic theory and similar topics.
  • Engineering: temperature conversion is required for material behaviour and process calculations.

How Does This Calculator Work?

  1. Select a category (length / mass / temperature)
  2. Validate source and target units
  3. Convert to the common unit (m for length, kg for mass, C for temperature)
  4. Convert to the target unit

Note: This content is for educational purposes. Rounding and decimal display may affect the result format for temperature conversions.