Home › Calculators › Nth Term Calculator

Nth Term Calculator

Enter the first few terms of a number pattern and the calculator works out the rule. It recognises arithmetic, geometric, quadratic, cubic and higher polynomial sequences plus Fibonacci-style patterns, then gives the nth term formula, the next terms and any term you ask for, with the method of differences shown.

Last updated:

At least 3 terms, separated by commas or spaces. Decimals and fractions like 3/4 are fine.

Position of the first term
Enter your values to see the result.
Advertisement
Advertisement

How to use the Nth Term Calculator

  1. Type the terms you know, in order, separated by commas or spaces.
  2. Choose a position n to evaluate, e.g. the 20th term.
  3. Pick the starting position: most textbooks start at n = 1.
  4. Press Find formula to get the nth term rule, next terms and steps.
  5. Check the difference table to see why the pattern fits.

Nth term formulas by sequence type

TypeHow to spot itNth term (first term n = 1)Example
ArithmeticConstant 1st difference daₙ = a₁ + (n − 1)d3, 7, 11, 15 → 4n − 1
GeometricConstant ratio raₙ = a₁ × rn − 13, 6, 12, 24 → 3 × 2n − 1
QuadraticConstant 2nd differenceaₙ = an² + bn + c, a = (2nd diff) ÷ 25, 8, 13, 20 → n² + 4
CubicConstant 3rd differenceaₙ = an³ + bn² + cn + d, a = (3rd diff) ÷ 62, 9, 28, 65 → n³ + 1
Fibonacci-typeEach term = sum of previous twoaₙ = aₙ₋₁ + aₙ₋₂1, 1, 2, 3, 5, 8

The method of differences

Write the terms in a row and subtract each term from the next to get the first differences. Repeat on that row to get the second differences, and so on. If row k becomes constant, the nth term is a polynomial of degree k, and its leading coefficient is the constant difference divided by k! (1 for linear, 2 for quadratic, 6 for cubic, 24 for quartic).

Worked example, 5, 8, 13, 20, 29: first differences 3, 5, 7, 9; second differences 2, 2, 2. The sequence is quadratic and the n² coefficient is 2 ÷ 2 = 1. Subtracting n² (1, 4, 9, 16, 25) leaves 4, 4, 4, 4, 4, so the rule is aₙ = n² + 4 and the 20th term is 404.

Tip: always check your formula by plugging in n = 1 and n = 2. If it reproduces the first terms, it is almost certainly right. The calculator does this check for you and works in exact fractions, so rules like (1/2)n² + (1/2)n for the triangular numbers come out exactly.

Frequently asked questions

How do you find the nth term of a sequence?

Look at the differences between consecutive terms. If the first differences are constant the sequence is arithmetic: aₙ = a₁ + (n − 1)d. If the ratios are constant it is geometric: aₙ = a₁ × r^(n − 1). If the second differences are constant it is quadratic, and so on.

How do you find the nth term of a quadratic sequence?

Halve the constant second difference to get the coefficient of n². Subtract that n² part from each term; what is left is an arithmetic sequence, which gives bn + c. For 5, 8, 13, 20, 29 the second difference is 2, so a = 1; subtracting n² leaves 4, 4, 4…, so aₙ = n² + 4.

How many terms do I need?

Enough to confirm the pattern: at least 3 for an arithmetic or geometric sequence, 4 for a quadratic, 5 for a cubic. With too few terms many rules fit, so the calculator only reports a pattern it has seen repeat.

What is the difference between arithmetic and geometric sequences?

An arithmetic sequence adds the same number each time (3, 7, 11, 15: +4). A geometric sequence multiplies by the same number each time (3, 6, 12, 24: ×2). Arithmetic sequences grow linearly; geometric ones grow or shrink exponentially.

Should the first term be n = 1 or n = 0?

Most school courses number the first term n = 1. Some programming and textbook problems start at n = 0. The formula changes (for 3, 7, 11 it is 4n − 1 starting at 1, or 4n + 3 starting at 0), so pick the convention your question uses.

Why does it say no pattern was found?

The terms may follow a rule that is not polynomial, geometric or Fibonacci-like (for example primes or alternating signs mixed with growth), there may be a typo, or there are not enough terms to confirm a higher-degree pattern. Adding one or two more terms often solves it.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.Factor Tree GeneratorDraw the prime factor tree of any number as a printable diagram, with exponent form and steps.Function Composition CalculatorFind f(g(x)), g(f(x)), f + g, f · g and f / g with values at a point and domains.X and Y Intercept CalculatorFind the x- and y-intercepts of lines, curves and functions with steps and a graph.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Eigenvalue and Eigenvector CalculatorEigenvalues (real or complex), eigenvectors and the characteristic polynomial of a square matrix.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.Inequality CalculatorSolve linear, quadratic, rational and absolute value inequalities with steps and a number line.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.
See all 74 Algebra & Calculus Calculators →