How to Find the Next Number in a Sequence Using Differences
Learn the method of differences: take first and second differences or ratios, spot the rule, and predict the next number. Worked examples included.
by jmApp · Updated 2026-11-19
To find the next number in a sequence with differences, subtract each term from the one after it. If those first differences are all the same, add that number to the last term. If they are not, take the differences of the differences (second differences) until a row turns constant, extend that row by one, then add your way back up to the sequence.
That one routine cracks most sequences you will meet on aptitude tests, in math homework and in puzzle apps. The rest of this guide walks through first, second and third differences, shows when to switch to ratios, and gives you a short practice routine so the method becomes automatic.
How do you find the next number using first differences?
Start with the simplest case. Take this sequence:
7, 15, 23, 31, 39, ?
Subtract each term from the next one:
- 15 − 7 = 8
- 23 − 15 = 8
- 31 − 23 = 8
- 39 − 31 = 8
Every first difference is 8. That makes it an arithmetic sequence with a common difference of 8, so the next term is 39 + 8 = 47.
The same works for falling sequences. For 50, 44, 38, 32, the differences are all −6, so the next term is 26. Always subtract in the same direction (later term minus earlier term) so the sign tells you whether the sequence is climbing or dropping.
What if the first differences are not the same?
Then go one level deeper. Write the first differences as a new row and take their differences.
2, 5, 10, 17, 26, ?
- First differences: 3, 5, 7, 9
- Second differences: 2, 2, 2
The second row is constant at 2. Extend it: the next second difference is 2. That makes the next first difference 9 + 2 = 11, and the next term 26 + 11 = 37.
When the second differences are constant, the sequence follows a quadratic rule (something with n² in it). Here the rule is n² + 1: 1 + 1 = 2, 4 + 1 = 5, 9 + 1 = 10, and so on up to 36 + 1 = 37.
Going to third differences
Sometimes the second row still is not flat. Try the cubes:
1, 8, 27, 64, 125, ?
- First differences: 7, 19, 37, 61
- Second differences: 12, 18, 24
- Third differences: 6, 6
The third row is constant at 6. Work back up: next second difference is 24 + 6 = 30, next first difference is 61 + 30 = 91, next term is 125 + 91 = 216, which is 6³. Constant third differences point to a cubic rule.
In test questions you rarely need to go past third differences. If you are on a fourth row and nothing has settled, the sequence is probably built some other way, such as ratios or two interleaved patterns.
How do you build a difference table step by step?
A difference table keeps your work tidy and stops you losing track when you work back up. Follow these steps:
- Write the sequence across the top, leaving a gap at the end for the missing term.
- Under each pair of neighbors, write the later term minus the earlier term. That is your first-difference row.
- If the row is constant, stop. Add the constant to the last term and you are done.
- If it is not constant, repeat step 2 on the first-difference row to get second differences.
- Keep going until a row is constant. Do not go further than you have terms for: a row needs at least two values to look constant, and three is safer.
- Add one more value to the constant row (the same number again).
- Work upward: add each new value to the last value of the row above it, until you reach the top row. That top value is your answer.
- Check the answer against the pattern you found (more on this below).
Here is the table for 2, 5, 10, 17, 26 laid out by term, with the predicted values in the last row:
| Term (n) | Value | First difference | Second difference |
|---|---|---|---|
| 1 | 2 | – | – |
| 2 | 5 | 3 | – |
| 3 | 10 | 5 | 2 |
| 4 | 17 | 7 | 2 |
| 5 | 26 | 9 | 2 |
| 6 (next) | 37 | 11 | 2 |
Read the last row from right to left: 2 is added to 9 to make 11, then 11 is added to 26 to make 37.
When should you use ratios instead of differences?
Differences are built for sequences that grow by adding. When a sequence grows by multiplying, the differences balloon and never settle. The tell is that the difference row looks like a copy or a scaled copy of the original sequence.
3, 6, 12, 24, ?
- First differences: 3, 6, 12. That is the sequence again.
- Ratios (each term divided by the previous): 2, 2, 2
The ratio is constant, so this is a geometric sequence. Next term: 24 × 2 = 48.
Ratios can have their own pattern too, just like differences:
1, 2, 6, 24, 120, ?
- Ratios: 2, 3, 4, 5
- Next ratio: 6, so the next term is 120 × 6 = 720
Mixed rules: multiply, then add
Some sequences combine both. Take 2, 5, 11, 23, 47, ?
- First differences: 3, 6, 12, 24
- Those differences double each time, so the next one is 48
- Next term: 47 + 48 = 95
The underlying rule is “double and add 1” (47 × 2 + 1 = 95). The difference table still got you there, because doubling showed up in the first-difference row. A quick rule of thumb: if the differences are not constant but each one is roughly twice or three times the last, switch to ratios on that row.
What do common difference patterns tell you?
After a few dozen sequences, you start reading the difference row like a fingerprint. This table sums up what each pattern usually means and what to do next.
| What you see in the differences | Likely sequence type | What to do |
|---|---|---|
| First differences constant | Arithmetic (linear) | Add the constant to the last term |
| Second differences constant | Quadratic (n² type) | Extend second row, work back up |
| Third differences constant | Cubic (n³ type) | Extend third row, work back up twice |
| Differences repeat the sequence itself | Geometric | Find the ratio and multiply |
| Differences alternate, such as +3, −1, +3, −1 | Two-step cycle | Apply the next step in the cycle |
| Differences match earlier terms | Fibonacci-style | Add the last two terms |
| Differences look random | Interleaved sequences | Split odd and even positions |
Two of these are worth a quick example each.
Alternating: 4, 7, 6, 9, 8, 11, ? has differences +3, −1, +3, −1, +3. The next step is −1, so the answer is 10.
Interleaved: 3, 10, 5, 20, 7, 30, ? has differences of 7, −5, 15, −13, 23, which look like noise. Split the positions instead. The odd positions go 3, 5, 7 and the even positions go 10, 20, 30. The missing term is in an odd position, so it is 9.
How do you check your answer is right?
A wrong answer often comes from one arithmetic slip in the table. Before you commit, run these checks:
- Re-add the bottom row. Redo the climb from the constant row to the top. It takes five seconds and catches most mistakes.
- Test a formula. For constant second differences, the n² part of the rule is half the second difference times n². In 2, 5, 10, 17, 26 the second difference is 2, so start with 1 × n². Subtract n² from each term (2 − 1, 5 − 4, 10 − 9…) and you get 1 every time. The rule is n² + 1, and plugging in n = 6 gives 37.
- Check the answer options. On a multiple-choice test, if your answer is not listed, go back and look for ratios or interleaving before you guess.
One caveat: with only four or five terms, more than one rule can technically fit. Test writers almost always intend the simplest rule, so prefer the lowest level of differences that turns constant.
How can you practice until the method is automatic?
Knowing the method and doing it under a timer are two different skills. Aptitude tests often give you well under a minute per question, so the goal is to spot the level (first, second, ratio, split) at a glance. A routine that works:
- Warm up on paper for five minutes. Write three sequences of your own, one linear, one quadratic, one geometric, and solve each with a full difference table. Making them up teaches you what each type looks like from the inside.
- Do a timed round. Ten questions, no paper. Try to name the type before you calculate anything. A puzzle app works well here: in Inferra, pick the number sequences theme and run a ten-question round against the clock. After each answer it names the rule you were looking at, such as “arithmetic sequence, plus eight,” so you see which pattern you missed and why.
- Review your misses. For every wrong answer, build the full difference table afterward. Note which pattern caught you out: interleaving and mixed rules are the usual culprits.
- Raise the pressure gradually. Once easy questions feel obvious, move up a level. Shorter time limits force you to read the first-difference row and decide in one pass.
- Track your accuracy over a week. If your hit rate on quadratic or geometric sequences lags behind the rest, spend the next warm-up on that type only.
Ten to fifteen minutes a day for a couple of weeks is usually enough to make the difference table something you run in your head. If you want a ready-made set of timed rounds that adapts to your level, Inferra is free on the App Store and Google Play.
Frequently asked questions
What is the method of differences for sequences?
It means subtracting each term from the next to get a row of differences, then repeating on that row until it becomes constant. You extend the constant row by one value and add back up to find the next term.
Can every number sequence be solved with differences?
No. Differences work best for sequences built by adding, such as linear, quadratic and cubic ones. Sequences built by multiplying need ratios, and alternating or interleaved sequences are easier to solve by splitting the positions.
How many terms do you need to use second differences?
You need at least four terms to get two second differences, and five terms to see three. With fewer values the row can look constant by coincidence, so more terms make the answer more reliable.
What does it mean if the second differences are constant?
It means the sequence follows a quadratic rule, something of the form an² + bn + c. The value of a is half the constant second difference.
What should I try if the differences never become constant?
Check whether the difference row repeats or scales the original sequence, which points to ratios. If the differences jump up and down, split the sequence into odd and even positions and solve each part separately.