English

How We Calculate

Last updated: November 24, 2026

Every number on CalcLesson comes from the code described here. The tables on this page are generated from that code, so they always match the tools.

Unit conversions

Each category has one base unit. A value is converted to the base unit and then to the target unit in a single step, using exact definitions where they exist. Results are cleaned to 15 significant digits to remove binary rounding noise, then displayed with the number of decimals you choose.

Definitions: 1 inch = 2.54 cm and 1 pound = 0.45359237 kg exactly (international yard and pound, 1959); 1 US gallon = 231 cubic inches = 3.785411784 L; 1 UK gallon = 4.54609 L; 1 nautical mile = 1,852 m; standard gravity = 9.80665 m/s² (used for psi); 1 kB = 1,000 bytes and 1 KiB = 1,024 bytes (IEC 80000-13). Sources: NIST SP 811, NIST Handbook 44.

Length (base: 1 meter)

UnitSymbolSize in meters
nanometernm0.000000001
micrometerµm0.000001
millimetermm0.001
centimetercm0.01
meterm1
kilometerkm1,000
inchin0.0254
footft0.3048
yardyd0.9144
milemi1,609.344
nautical milenmi1,852

Weight (base: 1 kilogram)

UnitSymbolSize in kilograms
milligrammg0.000001
gramg0.001
kilogramkg1
metric tont1,000
ounceoz0.028349523125
poundlb0.45359237
stonest6.35029318
US tonUS ton907.18474
UK tonUK ton1,016.0469088
Taiwan catty (台斤)台斤0.6

Area (base: 1 square meter)

UnitSymbolSize in square meters
square millimetermm²0.000001
square centimetercm²0.0001
square meterm²1
hectareha10,000
square kilometerkm²1,000,000
square inchin²0.00064516
square footft²0.09290304
square yardyd²0.83612736
acreac4,046.856422399998
square milemi²2,589,988.1103359996
tsubo (坪, Japan/Taiwan)坪3.305785123967

Volume (base: 1 liter)

UnitSymbolSize in liters
millilitermL0.001
centilitercL0.01
literL1
cubic meterm³1,000
cubic centimetercm³0.001
cubic inchin³0.016387064
cubic footft³28.316846592
teaspoon (US)tsp0.004928921594
tablespoon (US)tbsp0.014786764781
fluid ounce (US)fl oz0.029573529563
cup (US)cup0.2365882365
pint (US)pt0.473176473
quart (US)qt0.946352946
gallon (US)gal3.785411784
fluid ounce (UK)UK fl oz0.0284130625
pint (UK)UK pt0.56826125
gallon (UK)UK gal4.54609

Speed (base: 1 meter per second)

UnitSymbolSize in meter per seconds
meter per secondm/s1
kilometer per hourkm/h0.277777777778
mile per hourmph0.44704
foot per secondft/s0.3048
knotkn0.514444444444

Data Storage (base: 1 byte)

UnitSymbolSize in bytes
bitbit0.125
megabitMbit125,000
byteB1
kilobytekB1,000
megabyteMB1,000,000
gigabyteGB1,000,000,000
terabyteTB1,000,000,000,000
petabytePB1 × 10^15
kibibyteKiB1,024
mebibyteMiB1,048,576
gibibyteGiB1,073,741,824
tebibyteTiB1,099,511,627,776
pebibytePiB1.12589991 × 10^15

Pressure (base: 1 pascal)

UnitSymbolSize in pascals
pascalPa1
hectopascalhPa100
kilopascalkPa1,000
megapascalMPa1,000,000
barbar100,000
millibarmbar100
standard atmosphereatm101,325
pound per square inchpsi6,894.757293168361
torrTorr133.322368421053
millimeter of mercurymmHg133.322387415
inch of mercuryinHg3,386.389

Time (base: 1 second)

UnitSymbolSize in seconds
millisecondms0.001
seconds1
minutemin60
hourh3,600
dayd86,400
weekwk604,800
month (average)mo2,629,746
year (average)yr31,556,952

Angle (base: 1 degree)

UnitSymbolSize in degrees
degree°1
radianrad57.295779513082
gradiangrad0.9
arcminute′0.016666666667
arcsecond″0.000277777778
turnturn360

Power (base: 1 watt)

UnitSymbolSize in watts
wattW1
kilowattkW1,000
megawattMW1,000,000
horsepower (mechanical)hp745.69987158227
metric horsepower (PS)PS735.49875
BTU per hourBTU/h0.293071070172

Force (base: 1 newton)

UnitSymbolSize in newtons
newtonN1
kilonewtonkN1,000
dynedyn0.00001
pound-forcelbf4.448221615261
ounce-forceozf0.278013850954
kilogram-forcekgf9.80665

Energy (base: 1 joule)

UnitSymbolSize in joules
jouleJ1
kilojoulekJ1,000
megajouleMJ1,000,000
caloriecal4.184
kilocalorie (food Calorie)kcal4,184
watt-hourWh3,600
kilowatt-hourkWh3,600,000
British thermal unitBTU1,055.05585262
electronvolteV1.60217663 × 10^-19
foot-poundft·lbf1.355817948331

Temperature

  • °F = °C × 9/5 + 32; °C = (°F − 32) × 5/9
  • K = °C + 273.15; °R = °F + 459.67
  • Values below absolute zero (−273.15 °C) are rejected.

Fuel economy

  • Fuel economy is not a single factor: liters per 100 km measures fuel per distance, mpg measures distance per fuel, so one is a reciprocal of the other.
  • L/100 km = 235.214583… ÷ mpg (US), because 100 × 3.785411784 L ÷ 1.609344 km = 235.214583…; for UK mpg the constant is 282.480936… (UK gallon 4.54609 L).
  • km/L = 100 ÷ (L/100 km); mpg (US) = km/L × 2.352145833…
  • Zero or negative values are rejected.

Energy note

The calorie used here is the thermochemical calorie, exactly 4.184 J (NIST SP 811). The "Calorie" on food labels is a kilocalorie (1 kcal = 4,184 J). The International Table calorie (4.1868 J) differs by about 0.07%.

Dates

  • All dates use the Gregorian calendar, extended back to year 1 (proleptic). Supported range: years 1 to 9999.
  • Leap years: divisible by 4, except century years not divisible by 400.
  • Only calendar dates are used (no clock time), so time zones and daylight saving time never change a date result. Countdown clocks use your device's time zone.
  • Days between dates: the start date is not counted; "include the end date" adds one day.
  • Adding months or years: if the day does not exist in the result month, the result is that month's last day (January 31 + 1 month = February 28 or 29).
  • Week numbers follow ISO 8601 (weeks start on Monday; week 1 contains the first Thursday).
  • Weeks in a year: an ISO year has 53 weeks when January 1 is a Thursday, or a Wednesday in a leap year, and 52 otherwise. The U.S. count (weeks start on Sunday, week 1 contains January 1) is shown next to it and includes partial weeks.
  • Hours calculator: times are whole minutes. Hours = end − start − break; an end time earlier than the start counts as an overnight shift (+24 hours). Decimal hours = minutes ÷ 60, rounded to 2 decimals for display only. Pay is decimal hours × rate, without overtime, taxes or rounding rules.

Age

  • Age is counted on the calendar: a year is complete when the same month and day is reached, a month when the same day of the month is reached.
  • People born on February 29 turn a year older on March 1 in common years (the month and day February 29 has not been reached on February 28).

U.S. federal holidays

Business-day results skip the observed federal holidays published by the U.S. Office of Personnel Management (OPM), Federal Holidays (retrieved 2026-11-24) for 2025, 2026, 2027. When a holiday falls on a Saturday it is observed on Friday; on a Sunday, on Monday. Outside these years the tool warns that holidays are not subtracted. We update the list every year.

Observed day offHoliday
Wed, Jan 1, 2025New Year's Day
Mon, Jan 20, 2025Birthday of Martin Luther King, Jr.
Mon, Feb 17, 2025Washington's Birthday
Mon, May 26, 2025Memorial Day
Thu, Jun 19, 2025Juneteenth National Independence Day
Fri, Jul 4, 2025Independence Day
Mon, Sep 1, 2025Labor Day
Mon, Oct 13, 2025Columbus Day
Tue, Nov 11, 2025Veterans Day
Thu, Nov 27, 2025Thanksgiving Day
Thu, Dec 25, 2025Christmas Day
Thu, Jan 1, 2026New Year's Day
Mon, Jan 19, 2026Birthday of Martin Luther King, Jr.
Mon, Feb 16, 2026Washington's Birthday
Mon, May 25, 2026Memorial Day
Fri, Jun 19, 2026Juneteenth National Independence Day
Fri, Jul 3, 2026Independence Day (falls on Sat, Jul 4, 2026)
Mon, Sep 7, 2026Labor Day
Mon, Oct 12, 2026Columbus Day
Wed, Nov 11, 2026Veterans Day
Thu, Nov 26, 2026Thanksgiving Day
Fri, Dec 25, 2026Christmas Day
Fri, Jan 1, 2027New Year's Day
Mon, Jan 18, 2027Birthday of Martin Luther King, Jr.
Mon, Feb 15, 2027Washington's Birthday
Mon, May 31, 2027Memorial Day
Fri, Jun 18, 2027Juneteenth National Independence Day (falls on Sat, Jun 19, 2027)
Mon, Jul 5, 2027Independence Day (falls on Sun, Jul 4, 2027)
Mon, Sep 6, 2027Labor Day
Mon, Oct 11, 2027Columbus Day
Thu, Nov 11, 2027Veterans Day
Thu, Nov 25, 2027Thanksgiving Day
Fri, Dec 24, 2027Christmas Day (falls on Sat, Dec 25, 2027)
Fri, Dec 31, 2027New Year's Day (2028) (falls on Sat, Jan 1, 2028) *

* Derived from the weekend rule in 5 U.S.C. 6103(b); to be confirmed against OPM's 2028 schedule.

Holiday countdowns use fixed dates (Christmas, Halloween, New Year's Day, Valentine's Day, the Fourth of July), the fourth Thursday of November (U.S. Thanksgiving) and the Gregorian Easter algorithm (Western Easter). The first day of summer is the June solstice date in U.S. Eastern Time from the U.S. Naval Observatory for 2026, 2027, 2028, 2029, 2030: Sun, Jun 21, 2026; Mon, Jun 21, 2027; Tue, Jun 20, 2028; Wed, Jun 20, 2029; Fri, Jun 21, 2030.

Japanese national holidays (Japanese business days)

The Japanese business-day calculator skips the national holidays, substitute holidays (振替休日) and citizens' holidays listed by the Cabinet Office of Japan (official CSV, retrieved 2026-11-24) for 2025, 2026, 2027. Company year-end closures (December 29 to January 3) are not national holidays and are not skipped.

DateHoliday
Wed, Jan 1, 2025元日
Mon, Jan 13, 2025成人の日
Tue, Feb 11, 2025建国記念の日
Sun, Feb 23, 2025天皇誕生日
Mon, Feb 24, 2025休日
Thu, Mar 20, 2025春分の日
Tue, Apr 29, 2025昭和の日
Sat, May 3, 2025憲法記念日
Sun, May 4, 2025みどりの日
Mon, May 5, 2025こどもの日
Tue, May 6, 2025休日
Mon, Jul 21, 2025海の日
Mon, Aug 11, 2025山の日
Mon, Sep 15, 2025敬老の日
Tue, Sep 23, 2025秋分の日
Mon, Oct 13, 2025スポーツの日
Mon, Nov 3, 2025文化の日
Sun, Nov 23, 2025勤労感謝の日
Mon, Nov 24, 2025休日
Thu, Jan 1, 2026元日
Mon, Jan 12, 2026成人の日
Wed, Feb 11, 2026建国記念の日
Mon, Feb 23, 2026天皇誕生日
Fri, Mar 20, 2026春分の日
Wed, Apr 29, 2026昭和の日
Sun, May 3, 2026憲法記念日
Mon, May 4, 2026みどりの日
Tue, May 5, 2026こどもの日
Wed, May 6, 2026休日
Mon, Jul 20, 2026海の日
Tue, Aug 11, 2026山の日
Mon, Sep 21, 2026敬老の日
Tue, Sep 22, 2026休日
Wed, Sep 23, 2026秋分の日
Mon, Oct 12, 2026スポーツの日
Tue, Nov 3, 2026文化の日
Mon, Nov 23, 2026勤労感謝の日
Fri, Jan 1, 2027元日
Mon, Jan 11, 2027成人の日
Thu, Feb 11, 2027建国記念の日
Tue, Feb 23, 2027天皇誕生日
Sun, Mar 21, 2027春分の日
Mon, Mar 22, 2027休日
Thu, Apr 29, 2027昭和の日
Mon, May 3, 2027憲法記念日
Tue, May 4, 2027みどりの日
Wed, May 5, 2027こどもの日
Mon, Jul 19, 2027海の日
Wed, Aug 11, 2027山の日
Mon, Sep 20, 2027敬老の日
Thu, Sep 23, 2027秋分の日
Mon, Oct 11, 2027スポーツの日
Wed, Nov 3, 2027文化の日
Tue, Nov 23, 2027勤労感謝の日

Taiwan government office calendar (Taiwan working days)

The Taiwan working-day calculator follows the government office calendar of the Directorate-General of Personnel Administration (DGPA), from the open data set (retrieved 2026-11-24) for 2025, 2026, 2027: weekday days off (holidays, observed days and adjusted days off) are skipped, and make-up working Saturdays count as working days. Private employers may follow a different schedule.

DateDay off
Wed, Jan 1, 2025中華民國開國紀念日
Mon, Jan 27, 2025小年夜調整放假
Tue, Jan 28, 2025農曆除夕
Wed, Jan 29, 2025春節
Thu, Jan 30, 2025春節
Fri, Jan 31, 2025春節
Fri, Feb 28, 2025和平紀念日
Thu, Apr 3, 2025兒童節與民族掃墓節補假
Fri, Apr 4, 2025兒童節及民族掃墓節
Fri, May 30, 2025端午節補假
Mon, Sep 29, 2025教師節補假
Mon, Oct 6, 2025中秋節
Fri, Oct 10, 2025國慶日
Fri, Oct 24, 2025光復暨金門古寧頭大捷紀念日補假
Thu, Dec 25, 2025行憲紀念日
Thu, Jan 1, 2026中華民國開國紀念日
Mon, Feb 16, 2026除夕
Tue, Feb 17, 2026春節
Wed, Feb 18, 2026春節
Thu, Feb 19, 2026春節
Fri, Feb 20, 2026小年夜補假
Fri, Feb 27, 2026和平紀念日補假
Fri, Apr 3, 2026兒童節補假
Mon, Apr 6, 2026民族掃墓節補假
Fri, May 1, 2026勞動節
Fri, Jun 19, 2026端午節
Fri, Sep 25, 2026中秋節
Mon, Sep 28, 2026教師節
Fri, Oct 9, 2026國慶日補假
Mon, Oct 26, 2026台灣光復節補假
Fri, Dec 25, 2026行憲紀念日
Fri, Jan 1, 2027中華民國開國紀念日
Thu, Feb 4, 2027小年夜
Fri, Feb 5, 2027除夕
Mon, Feb 8, 2027春節
Tue, Feb 9, 2027春節補假
Wed, Feb 10, 2027春節補假
Mon, Mar 1, 2027和平紀念日補假
Mon, Apr 5, 2027民族掃墓節
Tue, Apr 6, 2027兒童節補假
Fri, Apr 30, 2027勞動節補假
Wed, Jun 9, 2027端午節
Wed, Sep 15, 2027中秋節
Tue, Sep 28, 2027教師節
Mon, Oct 11, 2027國慶日補假
Mon, Oct 25, 2027臺灣光復暨金門古寧頭大捷紀念日
Fri, Dec 24, 2027行憲紀念日補假
Fri, Dec 31, 2027中華民國開國紀念日補假

Make-up working Saturdays: Sat, Feb 8, 2025.

Currency and cryptocurrency rates

  • Exchange rates come from Frankfurter, a free service that collects reference rates from central banks and other official sources. We fetch them on our server and refresh them every hour; each rate keeps the date of its data.
  • Rates are stored as "units per 1 U.S. dollar". A conversion between two other currencies goes through the dollar: amount × (target per USD) ÷ (source per USD). Results are rounded only for display (0 decimals for yen, won, rupiah, dong and Chilean pesos; 2 for most currencies; more for cryptocurrencies).
  • These are reference (mid-market) rates. Banks, card issuers and money-transfer services add a margin and fees, so the amount you actually receive is lower.
  • Cryptocurrency prices (Bitcoin, Ether, Solana, XRP, Tether, USD Coin) are daily reference prices, not live exchange quotes.
  • Argentine peso: the official reference rate only. Parallel market rates (such as the "dólar blue") are not published by an official source and are not shown.
  • If the rate service cannot be reached, the converter shows the last saved rates and says so.