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)
| Unit | Symbol | Size in meters |
|---|
| nanometer | nm | 0.000000001 |
| micrometer | µm | 0.000001 |
| millimeter | mm | 0.001 |
| centimeter | cm | 0.01 |
| meter | m | 1 |
| kilometer | km | 1,000 |
| inch | in | 0.0254 |
| foot | ft | 0.3048 |
| yard | yd | 0.9144 |
| mile | mi | 1,609.344 |
| nautical mile | nmi | 1,852 |
Weight (base: 1 kilogram)
| Unit | Symbol | Size in kilograms |
|---|
| milligram | mg | 0.000001 |
| gram | g | 0.001 |
| kilogram | kg | 1 |
| metric ton | t | 1,000 |
| ounce | oz | 0.028349523125 |
| pound | lb | 0.45359237 |
| stone | st | 6.35029318 |
| US ton | US ton | 907.18474 |
| UK ton | UK ton | 1,016.0469088 |
| Taiwan catty (台斤) | 台斤 | 0.6 |
Area (base: 1 square meter)
| Unit | Symbol | Size in square meters |
|---|
| square millimeter | mm² | 0.000001 |
| square centimeter | cm² | 0.0001 |
| square meter | m² | 1 |
| hectare | ha | 10,000 |
| square kilometer | km² | 1,000,000 |
| square inch | in² | 0.00064516 |
| square foot | ft² | 0.09290304 |
| square yard | yd² | 0.83612736 |
| acre | ac | 4,046.856422399998 |
| square mile | mi² | 2,589,988.1103359996 |
| tsubo (坪, Japan/Taiwan) | 坪 | 3.305785123967 |
Volume (base: 1 liter)
| Unit | Symbol | Size in liters |
|---|
| milliliter | mL | 0.001 |
| centiliter | cL | 0.01 |
| liter | L | 1 |
| cubic meter | m³ | 1,000 |
| cubic centimeter | cm³ | 0.001 |
| cubic inch | in³ | 0.016387064 |
| cubic foot | ft³ | 28.316846592 |
| teaspoon (US) | tsp | 0.004928921594 |
| tablespoon (US) | tbsp | 0.014786764781 |
| fluid ounce (US) | fl oz | 0.029573529563 |
| cup (US) | cup | 0.2365882365 |
| pint (US) | pt | 0.473176473 |
| quart (US) | qt | 0.946352946 |
| gallon (US) | gal | 3.785411784 |
| fluid ounce (UK) | UK fl oz | 0.0284130625 |
| pint (UK) | UK pt | 0.56826125 |
| gallon (UK) | UK gal | 4.54609 |
Speed (base: 1 meter per second)
| Unit | Symbol | Size in meter per seconds |
|---|
| meter per second | m/s | 1 |
| kilometer per hour | km/h | 0.277777777778 |
| mile per hour | mph | 0.44704 |
| foot per second | ft/s | 0.3048 |
| knot | kn | 0.514444444444 |
Data Storage (base: 1 byte)
| Unit | Symbol | Size in bytes |
|---|
| bit | bit | 0.125 |
| megabit | Mbit | 125,000 |
| byte | B | 1 |
| kilobyte | kB | 1,000 |
| megabyte | MB | 1,000,000 |
| gigabyte | GB | 1,000,000,000 |
| terabyte | TB | 1,000,000,000,000 |
| petabyte | PB | 1 × 10^15 |
| kibibyte | KiB | 1,024 |
| mebibyte | MiB | 1,048,576 |
| gibibyte | GiB | 1,073,741,824 |
| tebibyte | TiB | 1,099,511,627,776 |
| pebibyte | PiB | 1.12589991 × 10^15 |
Pressure (base: 1 pascal)
| Unit | Symbol | Size in pascals |
|---|
| pascal | Pa | 1 |
| hectopascal | hPa | 100 |
| kilopascal | kPa | 1,000 |
| megapascal | MPa | 1,000,000 |
| bar | bar | 100,000 |
| millibar | mbar | 100 |
| standard atmosphere | atm | 101,325 |
| pound per square inch | psi | 6,894.757293168361 |
| torr | Torr | 133.322368421053 |
| millimeter of mercury | mmHg | 133.322387415 |
| inch of mercury | inHg | 3,386.389 |
Time (base: 1 second)
| Unit | Symbol | Size in seconds |
|---|
| millisecond | ms | 0.001 |
| second | s | 1 |
| minute | min | 60 |
| hour | h | 3,600 |
| day | d | 86,400 |
| week | wk | 604,800 |
| month (average) | mo | 2,629,746 |
| year (average) | yr | 31,556,952 |
Angle (base: 1 degree)
| Unit | Symbol | Size in degrees |
|---|
| degree | ° | 1 |
| radian | rad | 57.295779513082 |
| gradian | grad | 0.9 |
| arcminute | ′ | 0.016666666667 |
| arcsecond | ″ | 0.000277777778 |
| turn | turn | 360 |
Power (base: 1 watt)
| Unit | Symbol | Size in watts |
|---|
| watt | W | 1 |
| kilowatt | kW | 1,000 |
| megawatt | MW | 1,000,000 |
| horsepower (mechanical) | hp | 745.69987158227 |
| metric horsepower (PS) | PS | 735.49875 |
| BTU per hour | BTU/h | 0.293071070172 |
Force (base: 1 newton)
| Unit | Symbol | Size in newtons |
|---|
| newton | N | 1 |
| kilonewton | kN | 1,000 |
| dyne | dyn | 0.00001 |
| pound-force | lbf | 4.448221615261 |
| ounce-force | ozf | 0.278013850954 |
| kilogram-force | kgf | 9.80665 |
Energy (base: 1 joule)
| Unit | Symbol | Size in joules |
|---|
| joule | J | 1 |
| kilojoule | kJ | 1,000 |
| megajoule | MJ | 1,000,000 |
| calorie | cal | 4.184 |
| kilocalorie (food Calorie) | kcal | 4,184 |
| watt-hour | Wh | 3,600 |
| kilowatt-hour | kWh | 3,600,000 |
| British thermal unit | BTU | 1,055.05585262 |
| electronvolt | eV | 1.60217663 × 10^-19 |
| foot-pound | ft·lbf | 1.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 off | Holiday |
|---|
| Wed, Jan 1, 2025 | New Year's Day |
| Mon, Jan 20, 2025 | Birthday of Martin Luther King, Jr. |
| Mon, Feb 17, 2025 | Washington's Birthday |
| Mon, May 26, 2025 | Memorial Day |
| Thu, Jun 19, 2025 | Juneteenth National Independence Day |
| Fri, Jul 4, 2025 | Independence Day |
| Mon, Sep 1, 2025 | Labor Day |
| Mon, Oct 13, 2025 | Columbus Day |
| Tue, Nov 11, 2025 | Veterans Day |
| Thu, Nov 27, 2025 | Thanksgiving Day |
| Thu, Dec 25, 2025 | Christmas Day |
| Thu, Jan 1, 2026 | New Year's Day |
| Mon, Jan 19, 2026 | Birthday of Martin Luther King, Jr. |
| Mon, Feb 16, 2026 | Washington's Birthday |
| Mon, May 25, 2026 | Memorial Day |
| Fri, Jun 19, 2026 | Juneteenth National Independence Day |
| Fri, Jul 3, 2026 | Independence Day (falls on Sat, Jul 4, 2026) |
| Mon, Sep 7, 2026 | Labor Day |
| Mon, Oct 12, 2026 | Columbus Day |
| Wed, Nov 11, 2026 | Veterans Day |
| Thu, Nov 26, 2026 | Thanksgiving Day |
| Fri, Dec 25, 2026 | Christmas Day |
| Fri, Jan 1, 2027 | New Year's Day |
| Mon, Jan 18, 2027 | Birthday of Martin Luther King, Jr. |
| Mon, Feb 15, 2027 | Washington's Birthday |
| Mon, May 31, 2027 | Memorial Day |
| Fri, Jun 18, 2027 | Juneteenth National Independence Day (falls on Sat, Jun 19, 2027) |
| Mon, Jul 5, 2027 | Independence Day (falls on Sun, Jul 4, 2027) |
| Mon, Sep 6, 2027 | Labor Day |
| Mon, Oct 11, 2027 | Columbus Day |
| Thu, Nov 11, 2027 | Veterans Day |
| Thu, Nov 25, 2027 | Thanksgiving Day |
| Fri, Dec 24, 2027 | Christmas Day (falls on Sat, Dec 25, 2027) |
| Fri, Dec 31, 2027 | New 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.
| Date | Holiday |
|---|
| 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.
| Date | Day 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.