Home › Calculators & Converters

Calculators & Converters

Exact conversions and calculations that run in your browser.

Convert

Unit Converter

Length, weight, temperature, volume, area, speed, time and data sizes, using exact definitions.

Time Zone Converter

Convert a date and time between time zones, with daylight-saving gaps and repeats shown.

Calculate

Percentage & Tip Calculator

Percent of, percent change, and tip split between people.

Date Calculator

Days between two dates, or add and subtract days from a date.

Numbers

Number Base Converter

Convert between binary, octal, decimal, hexadecimal and base 36, with exact large values and two's complement widths.

Numbers and money

Roman Numeral Converter

Convert between numbers from 1 to 3999 and Roman numerals, with strict checking.

Aspect Ratio and Image Size Calculator

Work out a missing width, height or ratio, with the rounding stated.

Compound Interest Calculator

Balance, interest and a yearly table for savings with regular contributions.

Loan and Mortgage Calculator

Monthly payment, total interest and a full repayment schedule.

Health, age, money and pay

BMI Calculator

Body mass index from height and weight, in metric or imperial, with the WHO adult categories.

Age Calculator

Exact age in years, months and days, with total days, weeks and hours lived.

Discount and Markup Calculator

Sale prices, discounts, markup and margin, with the formulas shown.

Salary and Hours Calculator

Hourly, daily, weekly, monthly and annual pay from hours and working days, using the real month lengths.

Pets

Cat Life Stage Calculator

Find a cat's life stage from the 2021 AAHA/AAFP guidelines. The guideline gives no human-equivalent age, so none is shown.

Dog Age Calculator

Convert dog years to human years, and back, using the 2020 Cell Systems formula fitted to Labradors.

About these calculators

This section holds fifteen small tools for everyday sums. They convert units, time zones, number bases and Roman numerals. They calculate percentages and tips, dates and ages, discounts and margins, loans, compound interest, pay, body mass index and a pet's age or life stage.

How the numbers are worked out

Every calculation lives in one script file that the page calls, such as units.js for conversions, percent.js for percentages and tips, loan.js for repayments and dates.js for the calendar. Most of them use exact integer and fraction arithmetic instead of ordinary floating-point numbers, so a result such as 0.1 + 0.2 is exactly 0.3 and money does not drift by a cent. Rounding happens once, at the end, and each page says how: usually half up to the cent. The dog age calculator needs logarithms, so it is an approximation, and says so.

Each of these scripts has an automated test in the site's repository that checks edge cases such as leap days, clock changes, zero divisors and very large numbers. The tests protect the arithmetic, but a model cannot know your lender's fees, and a BMI figure is only a screening number. The money and health pages say that their results are estimates, not advice.

Privacy

All the calculators run in your browser. What you type is not sent to a server and is not stored. There is nothing to sign up for.

Choosing the right calculator