Solve algebra age word problems instantly. Enter the age difference and a past or future age ratio to get both current ages with a complete step-by-step solution — free, no sign-up.
Age word problems are the classic introduction to applied algebra: two people, an age difference, and a clue about how their ages compare at some other point in time. They appear in middle-school textbooks, SAT and ACT prep, civil-service exams, and job aptitude tests because they test one essential skill — translating plain English into equations. The calculator above solves the most common form of these problems instantly and shows every algebraic step, so you can check homework, prepare for a test, or finally understand the method that turns sentences into solvable math.
Using the solver takes less than a minute. Read your word problem carefully and pull out three numbers: the age difference between the two people, how far in the past or future the ratio clue applies, and the ratio itself.
Use Load Example to see a complete sample problem solved end to end, and Reset to clear the form. If your numbers describe an impossible situation — for example, a ratio of exactly 1, or clues that force a negative age — the calculator explains what went wrong instead of giving a nonsense answer.
An age word problem gives you two pieces of information about two people’s ages and asks you to find their current ages. The first piece is almost always a difference: “John is 4 years older than Mary,” or “A father is 24 years older than his son.” The second piece is a ratio at a different time: “in 2 years, John will be twice as old as Mary,” or “6 years ago, the father was 4 times as old as his son.” Two unknowns and two independent clues — that is exactly what you need for a solvable system of equations.
The reason these problems confuse students is not the algebra itself, which is only one-variable linear equations, but the translation step. English sentences hide mathematical structure. “Twice as old as” becomes multiplication by 2. “In 3 years” means adding 3 to both people’s ages — the single most common error is adding it to only one. “Years ago” means subtracting from both. Once the sentences are converted to equations, the rest is mechanical: substitute, expand, collect like terms, and solve.
There is a deep reason age problems always work this way. The age difference between two people never changes — if Sarah is 5 years older than Tom today, she was 5 years older ten years ago and will be 5 years older ten years from now. Ratios, on the other hand, change constantly: a 30-year-old is 3 times as old as a 10-year-old, but ten years later the ratio is 40 to 20, or 2 to 1. Every age word problem exploits this contrast: a constant difference paired with a ratio that is only true at one specific moment. Pin down that moment with an equation and the current ages fall out.
A useful habit is the timeline sketch: draw “now” in the middle, mark the past or future point the problem mentions, and write each person’s age at both points in terms of a single variable. If y is the younger person’s age now, their age at the other point is y plus or minus the year offset, and the older person’s age is y plus the difference, shifted by the same offset. Seeing both columns side by side makes the ratio equation almost write itself.
Every two-person age word problem reduces to the same pair of equations. Let x be Person A’s current age and y be Person B’s current age. If A is D years older than B, and in Y years A will be R times as old as B:
x = y + D
x + Y = R(y + Y)
Substitute the first equation into the second to get a single equation in y: (y + D) + Y = R(y + Y). Expanding the right side gives y + D + Y = Ry + RY. Collect the y terms on the left and the constants on the right: y − Ry = RY − Y − D. Factoring gives y(1 − R) = Y(R − 1) − D, and multiplying through by −1 yields the direct formula:
y = D ÷ (R − 1) − Y
then
x = y + D
Two special cases deserve attention. If R = 1, the formula divides by zero — and rightly so, because a ratio of 1 means the two ages stay in the same proportion forever, which contradicts a nonzero age gap; such a problem has no solution. If the formula produces a negative age, the clues are inconsistent with reality, and the honest answer is that no valid ages exist. The calculator above checks both cases automatically.
For “years ago” clues, simply use a negative Y. The equation x + Y = R(y + Y) with Y = −6 correctly subtracts 6 from both ages, because the same offset applies to everyone — time passes equally for both people, which is the entire logical engine of these problems.
Example 1 — the classic. Sarah is 5 years older than Tom. In 3 years, Sarah will be twice as old as Tom. Here D = 5, Y = 3, R = 2. Let x be Sarah’s age and y be Tom’s age. Then x = y + 5 and x + 3 = 2(y + 3). Substituting: (y + 5) + 3 = 2(y + 3), so y + 8 = 2y + 6. Subtracting y from both sides: 8 = y + 6, and y = 2. Then x = 2 + 5 = 7. Answer: Sarah is 7 and Tom is 2. Check: in 3 years they are 10 and 5, and 10 is indeed twice 5.
Example 2 — a “years ago” clue. A father is 24 years older than his son. Six years ago, the father was 4 times as old as his son. Here D = 24, Y = −6, R = 4. Let x be the father’s age and y be the son’s age. Then x = y + 24 and x − 6 = 4(y − 6). Substituting: (y + 24) − 6 = 4(y − 6), so y + 18 = 4y − 24. Subtracting y: 18 = 3y − 24. Adding 24: 42 = 3y, so y = 14. Then x = 14 + 24 = 38. Answer: the father is 38 and the son is 14. Check: six years ago they were 32 and 8, and 32 is 4 times 8.
Example 3 — a fractional ratio. Ana is 8 years older than Ben. In 4 years, Ana will be 1.5 times as old as Ben. Here D = 8, Y = 4, R = 1.5. Using the direct formula: y = 8 ÷ (1.5 − 1) − 4 = 8 ÷ 0.5 − 4 = 16 − 4 = 12. Then x = 12 + 8 = 20. Answer: Ana is 20 and Ben is 12. Check: in 4 years they are 24 and 16, and 24 ÷ 16 = 1.5. Notice how the formula handles non-integer ratios without any extra work — this is why memorizing the setup beats guessing and checking.
Test preparation. Age word problems are guaranteed fixtures on the SAT, ACT, GRE quantitative sections, and countless civil-service and aptitude exams. They are popular with test makers precisely because they cannot be solved by rote formula recall alone — you must parse the language first. Practicing with this calculator trains the translation skill: cover the solution, solve on paper, then reveal the steps to find where your setup diverged.
Teaching and tutoring. Tutors use age problems to demonstrate substitution, the single most important technique in elementary algebra. Because the story is concrete — everyone understands birthdays — the abstract move of “replace x with y + 5” feels motivated rather than arbitrary. The step-by-step display above mirrors how a good tutor talks through the problem, making it a ready-made worked example for a lesson or a homework help session.
Retirement and family planning puzzles. The same mathematics answers questions like: a parent is 26 years older than a child; when the parent retires at 65, the child will be exactly half the parent’s age — how old is each now? (D = 26, and at retirement the ratio is 2, so if Y is the years until retirement: solve 26 ÷ (2 − 1) − Y for the child’s age.) Framing real planning questions as age problems shows students that the algebra they learn in school genuinely models decisions adults make.
This page provides an interactive solver for two-person algebra age word problems of the form: Person A is D years older than Person B, and in Y years (negative Y for years ago) A will be R times as old as B. The closed-form solution is y = D ÷ (R − 1) − Y for B’s current age and x = y + D for A’s current age, valid for R ≠ 1 with non-negative results. The page includes the derivation, three fully worked numeric examples (integer ratio, past-tense clue, fractional ratio), a translation guide from English to equations, common error patterns, and eight FAQs. Entity: algebra age word problem solver; category: math calculators; related entities: linear equations, systems of equations, ratio.
An age word problem is a story problem that gives two clues about two people’s ages — usually an age difference and a ratio that holds at a different point in time — and asks for their current ages. It is solved by converting each clue into an equation: the difference becomes x = y + D and the ratio becomes x + Y = R(y + Y). Solving the resulting system gives both ages. They are a staple of algebra courses because they teach how to translate English sentences into mathematics.
Assign variables to the current ages, typically x for the older person and y for the younger. Turn “A is D years older than B” into x = y + D. Turn “in Y years, A will be R times as old as B” into x + Y = R(y + Y), remembering to add Y to both ages. Substitute the first equation into the second and solve the resulting one-variable linear equation for y, then compute x = y + D.
It means adding 5 to every person’s current age in the equation for that future moment. If x and y are the current ages, then “in 5 years A will be twice as old as B” becomes x + 5 = 2(y + 5). The most common mistake students make is writing x + 5 = 2y, which adds the 5 years to only one person — but time passes equally for everyone, so both sides of the ratio must be shifted.
Yes. If the ratio is exactly 1, the problem is contradictory: a ratio of 1 means the ages stay in the same proportion forever, which is impossible when there is a nonzero age gap, so the equations have no solution. Likewise, if the numbers force a negative age, the clues describe an impossible situation. A well-built solver flags both cases instead of returning a meaningless number.
Handle it exactly the same way, but subtract instead of add. “Six years ago, the father was 4 times as old as the son” becomes x − 6 = 4(y − 6), where x and y are the current ages. In the calculator above, enter −6 in the year field. The algebra is identical because the same offset applies to both people whether you move forward or backward in time.
Plug both ages back into the original sentences. First verify the difference: subtracting the younger age from the older should give the stated gap. Then shift both ages by the year offset and verify the ratio: divide the older shifted age by the younger shifted age and confirm it equals the stated multiple. If both sentences come out true, the answer is correct. This twenty-second check catches almost every setup error.
Yes. When the ratio is 2, the general formula y = D ÷ (R − 1) − Y simplifies to y = D − Y for the younger person’s age. So if Ana is 8 years older than Ben and will be twice as old in 4 years, Ben is 8 − 4 = 4 and Ana is 12. More generally, the younger person’s age is always the age gap divided by one less than the ratio, minus the year offset: y = D ÷ (R − 1) − Y.
They can, but you need three independent clues for three unknown ages — for example, two age differences and one ratio, or pairwise ratios at known times. The method is the same: express every person’s age in terms of one variable using the difference clues, then use the ratio clue to build a single equation. The two-person case on this page covers the vast majority of textbook and exam problems.
Continue practicing with these related tools:
Cite this page as: “Algebra Age Word Problems Calculator.” Sigma Calculator. https://sigmacalculator.net/math-calculators/algebra-age-word-problems-calculator/
Last updated: October 9, 2026