Home / Guides / Percentage and Age Calculations with Worked Examples
Free guide · Doc Writer Lab

Percentage and Age Calculations with Worked Examples

Worked examples for discounts, percentage change and exact age, plus the edge cases where calculators and hand sums disagree.

Explore free tools →

Two kinds of everyday arithmetic that go wrong easily

Percentages and ages look simple, and yet they cause constant small errors: a discount calculated on the wrong base, a rise and fall that do not cancel out, an age that is a month off because someone counted in years only. This guide works through the typical cases by hand and then shows how the Percentage Calculator and Age Calculator handle them, including a few limits you should know about.

Doing one example by hand first is worthwhile. It means you can tell when a result on screen does not look right, which is the best protection against a mistyped number.

The three percentage questions

Almost every percentage problem is one of three questions. The calculator has one row for each.

1. What is X percent of Y?

Divide the percentage by 100 and multiply by the number. What is 15 percent of 240? 15 divided by 100 is 0.15, and 0.15 times 240 is 36. This is the question behind discounts, tips, tax and commission. A 20 percent discount on an item priced at 85 takes off 17, leaving 68.

2. X is what percent of Y?

Divide the part by the whole and multiply by 100. 30 is what percent of 120? 30 divided by 120 is 0.25, so the answer is 25 percent. Use it for shares, test scores and completion: 42 correct out of 50 is 84 percent.

3. What is the percentage change from A to B?

Subtract the old value from the new, divide by the old value, multiply by 100. From 80 to 100: the difference is 20, and 20 divided by 80 is 0.25, so the change is plus 25 percent. From 100 to 80: the difference is minus 20, divided by 100, is minus 20 percent. The calculator shows a plus sign for increases and a minus sign for decreases.

Why up 25 and down 20 are the same journey

The last example surprises people. Going from 80 to 100 is a 25 percent rise, but going back from 100 to 80 is only a 20 percent fall. Both changes describe the same 20 units, but the base is different each time: the first divides by 80 and the second by 100. The rule to carry away is that the percentage change always depends on which number you start from. You can see it by entering the pairs in both directions in the third row of the calculator.

The same effect makes stacked discounts smaller than they look. Take 20 percent off 100 and you have 80. Take a further 10 percent off that and you have 72, not 70, because the second discount applies to 80, and 10 percent of 80 is 8. Two discounts of 20 and 10 percent together are a 28 percent discount, not 30.

Percentage points are not percent

If an interest rate moves from 4 percent to 6 percent, it has risen by 2 percentage points, but the rate itself has gone up by 50 percent (2 divided by 4). Both statements are true, and they mean different things. When you read a headline, work out which one the author means. The calculator's third row gives you the relative change, 50 percent in this case. The difference of 2 points you subtract yourself.

Reading the percentage calculator carefully

  • Each row updates as you type, so there is no calculate button. If a row is blank, an input is empty.
  • Results are rounded to at most four decimal places, and trailing zeros are dropped. For money, round the answer yourself to the cent.
  • The share row stays blank when the whole is zero, and the change row stays blank when the starting value is zero. Dividing by zero has no meaning, so a change from nothing to something has no percentage.
  • For a decrease, the change is calculated against the size of the starting value, so a negative starting value gives a result that is arithmetically consistent but can be confusing to interpret. Be cautious with negative bases such as losses.

How age is worked out

An age in years, months and days is not a single division. It is calendar arithmetic. Count the complete years from the birth date, then the complete months left over, then the remaining days. A person born on 15 January 2000, on 17 November 2026, is 26 years, 10 months and 2 days old. The years run from January 2000 to January 2026, the months from January to November, and the days from the 15th to the 17th.

The Age Calculator reports those three numbers, the total number of days between the dates (9,803 for this example) and the number of days until the next birthday. It also tells you which birthday that will be: in this example, 59 days until the 27th birthday on 15 January 2027.

Age on a different day

The second date box defaults to today but you can change it to any date, past or future. That makes it useful for questions like:

  • How old will a child be on the first day of school?
  • Was someone old enough on the date of an event?
  • How old was a person on a date in a document?

If the second date is before the birth date, the calculator tells you the dates are in the wrong order rather than giving a negative age.

Month-end dates and leap years

Calendar arithmetic gets awkward around the end of months, and no simple method is perfect there. When the day of the month on the second date is smaller than on the birth date, the calculator borrows days from the previous month, and months differ in length. For birthdays on the 29th, 30th or 31st, the day count in the result for dates near the start of a month can look odd or may even be wrong, so check those cases by hand before using the answer for anything that matters. People born on 29 February have a similar problem: in years that are not leap years, the next-birthday date is worked out as a date that falls on 1 March.

Different official bodies also apply their own rules, for example about when a leap-day birthday counts as a birthday for legal purposes. For legal, medical or eligibility decisions, use the rule set by the organisation concerned and treat the calculator as a convenience.

Worked checklist for common jobs

  1. Price after discount: use the first row with the discount percentage and the price, then subtract the result from the price.
  2. Price with tax added: the first row gives the tax amount; add it to the price. To go backwards, divide the total by one plus the rate, for example 118 divided by 1.18 gives 100.
  3. Test score: second row, with marks gained and marks available.
  4. Growth between two periods: third row, with the earlier figure as the first value.
  5. Age at a date: enter the birth date, change the second date and read years, months and days.
  6. Days between two dates: use the age calculator with the earlier date as the birth date. The total days figure is the gap.

Limits to keep in mind

  • The calculators work in your browser with the numbers you type. They do not know currencies, rounding rules for invoices or time zones.
  • Dates are taken as calendar dates, without a time of day, so ages are measured in whole days.
  • Results are only as good as the inputs. Re-read both numbers before relying on the answer.

Frequently asked questions

Why is a 25 percent rise not undone by a 25 percent fall?

Because the second percentage is taken of a bigger number. A 25 percent rise from 80 gives 100, and a 25 percent fall from 100 gives 75, not 80.

How do I find the original price before a discount?

Divide the sale price by one minus the discount rate. A sale price of 68 after 20 percent off becomes 68 divided by 0.8, which is 85.

Does the age calculator store my date of birth?

The calculation happens in your browser as you type. The date is not needed on a server to produce the result.

Can I use it for the number of days until an event?

Yes, in a roundabout way: enter today as the first date and the event as the second, and read the total days.