Age Word Problem Calculator
This age word problem calculator solves the classic algebra puzzle of the form one person is some multiple of another's age now, and after a number of years that multiple changes. These problems appear throughout school algebra because they turn a sentence into a single linear equation that you solve for the unknown age. Set up the standard case: person A is presently a given multiple of person B's age, and after a stated number of years person A will be a different multiple of person B's age. Letting B's current age be the unknown, the two statements become one equation, ratioNow times B plus years equals ratioFuture times the quantity B plus years, which rearranges to a clean expression for B. Enter the present multiple, the number of years ahead, and the future multiple, and the calculator returns both present ages. The standard pattern is the same one the US National Institute of Standards and Technology and mathematics curricula use to teach linear equations. Use it to check homework, set practice problems, or understand the method. Every figure is computed deterministically from the linear equation shown in full below, with a worked example that reconciles exactly to the calculator so you can follow each step yourself.
Turning the words into one equation: if A is now 3 times B and in 12 years A will be 2 times B, then B is 12 years old and A is 36 years old. The puzzle reduces to a single linear equation.
Age problem equation
ratioNow x B + years = ratioFuture x ( B + years )
solving for B: B = ( ratioFuture x years - years ) / ( ratioNow - ratioFuture )
A = ratioNow x B
B = younger age now, A = older age now
Both people age by the same number of years, so add the years to each side and set the future relationship. Collecting the B terms on one side isolates B, and multiplying by the present ratio gives A. The denominator must not be zero, so the two ratios must differ.
Worked example
A is now 3 times as old as B, and in 12 years A will be twice as old as B.
- set up: 3B + 12 = 2 (B + 12)
- expand the right side: 3B + 12 = 2B + 24
- subtract 2B and 12: B = 12
- A = 3 x 12 = 36
- check: in 12 years A is 48 and B is 24, and 48 = 2 x 24
B is 12 and A is 36, and the future check confirms the second condition. These are the calculator's default inputs, so the result above matches the widget exactly.
How the ratios shape the answer
With 12 years ahead, changing the present and future multiples changes the solved ages.
| Now multiple | Future multiple | B now | A now |
|---|---|---|---|
| 3 | 2 | 12 | 36 |
| 4 | 2 | 6 | 24 |
| 5 | 3 | 12 | 60 |
| 2 | 1.5 | 12 | 24 |
Linear equations and algebra reference: US National Institute of Standards and Technology (NIST).
Age Word Problem Calculator: frequently asked questions
How does the calculator solve the puzzle?
It translates the two sentences into one linear equation. The present statement says A equals the now-multiple times B, and the future statement says A plus the years equals the future-multiple times B plus the years. Substituting and solving for B gives B = (futureMultiple x years - years) / (nowMultiple - futureMultiple), then A is the now-multiple times B.
Why must the two multiples differ?
If the present and future multiples are equal, the equation has no unique solution because the relationship never changes, so the denominator (nowMultiple minus futureMultiple) is zero. A well-posed age puzzle always has a changing ratio, which is what makes the years matter and the problem solvable.
Can the answer be a fraction?
Yes. Depending on the inputs the solved ages can come out as fractions or decimals, which is mathematically valid even though real ages are usually whole numbers. Textbook problems are normally chosen so the answer is a whole number, but the formula handles any consistent set of ratios and years.
What if the older person is younger in the future ratio?
The future multiple is normally smaller than the present multiple, because as both people age the ratio of their ages moves toward one. If you enter a future multiple larger than the present one, the formula still computes a value, but it may be negative, signalling that no positive-age solution exists for that combination.
Does this cover three-person age problems?
This tool solves the standard two-person form with a present and a future ratio, which is the most common type. Problems involving three people, past as well as future conditions, or sums of ages need additional equations and are beyond the scope of this single-equation solver.
Official sources
- Mathematics and linear equations reference: US National Institute of Standards and Technology (NIST). As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.