Taylor Series Calculator
A Taylor series (specifically a Maclaurin series when centred at zero) represents a function as a sum of powers of x: f(x) = f(0) + f'(0)*x + f''(0)*x^2/2! + f'''(0)*x^3/3! + and so on. Select a function (sin(x), cos(x), e^x, ln(1+x), 1/(1-x), or arctan(x)), enter the number of terms to include (1 to 10), and the value of x to evaluate at. The calculator shows the series formula, the value of each term at your chosen x, the running partial sum, the exact function value, and the error. For example, sin(x) at x=1 with 5 terms gives 0 + 1 - 1/6 + 1/120 - 1/5040 = 0.8416, versus the exact value 0.8415. As you add more terms, the partial sum converges to the exact value. Maclaurin series converge on different intervals: e^x and sin/cos converge everywhere, while ln(1+x) requires x in (-1, 1] and 1/(1-x) requires |x| less than 1.
Term-by-term table
| Term n | Formula | Value at x | Running sum |
|---|
Taylor series: frequently asked questions
What is a Taylor series?
A Taylor series represents a function as an infinite sum of terms, each involving a power of (x - a) multiplied by the function's nth derivative at a, divided by n!. A Maclaurin series is a Taylor series centred at a = 0. For example, e^x = 1 + x + x^2/2! + x^3/3! + ... for all x.
Why are Taylor series useful?
Taylor series allow complex functions to be approximated by polynomials, which are easy to compute and integrate. They reveal the local behaviour of functions near a point. They are used in numerical methods, physics, engineering, and computer algorithms. For example, calculators often compute sin(x) using a truncated Taylor series.
What is the error in a Taylor series approximation?
The error using n terms is bounded by the Lagrange remainder: |f(x) - Pn(x)| is at most |x|^(n+1) * M / (n+1)!, where M is the maximum of |f^(n+1)| on the interval. For alternating series, the error is bounded by the absolute value of the first omitted term. More terms always give a better approximation.
What is the radius of convergence?
The Taylor series converges to the function only within a certain interval called the radius of convergence. For e^x and sin(x) and cos(x), the radius is infinite (they converge everywhere). For ln(1+x), convergence requires -1 less than x at most 1. For 1/(1-x), convergence requires |x| less than 1. For arctan(x), convergence requires |x| at most 1.
What is the difference between a Taylor series and a Fourier series?
A Taylor series expresses a function as a sum of power terms (polynomials) centred at a point, and is useful for functions that are smooth near that point. A Fourier series expresses a periodic function as a sum of sine and cosine terms, and is useful for periodic or piecewise functions. Both are types of series expansions but serve different purposes.
Sources
- Taylor and Maclaurin series: NIST DLMF 1.10, Functions of a Complex Variable.
- Series expansions for common functions: NIST DLMF Chapter 4, Elementary Functions.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.