Percentages and Math

Taylor Series Calculator

Choose a function, a center and an order to see the Taylor polynomial and how close it gets.

Your numbers

The point the polynomial is built around. Example value.

A whole number from 0 to 20. Example value.

Result

Polynomial of order 5 at x = 1

0.8416666667

sin x is 0.8414709848.

Taylor polynomial value
0.8416666667
True value
0.8414709848
Actual error
0.0001957
Error bound (Lagrange)
0.001389
Center a
0

Coefficients and terms

nCoefficient of x^nTerm at x
000
111
200
3-0.16666667-0.16666667
400
50.00833333330.0083333333

Value and error for each order

OrderPolynomialError
000.8415
110.1585
210.1585
30.83333333330.008138
40.83333333330.008138
50.84166666670.0001957
How this was calculated
  1. The coefficient of x^n is the n-th derivative at 0 divided by n!.
  2. The polynomial is x - x^3 / 6 + x^5 / 120.
  3. At x = 1 it gives 0.8416666667, against the true value 0.8414709848: an error of 0.0001957.
  4. The Lagrange remainder says the error is at most M |x - a|^6 / 6!, where M is the largest size of the next derivative between a and x. Here that is 0.001389.
  • The polynomial matches the function best near the center. Far from the center the error can grow with the order, and for ln x, 1 / x and powers the series only converges close to the center.

Calculated using SumPanda.com · https://sumpanda.com/taylor-series-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the taylor series calculator

  1. Choose a function. For a power of x, also enter the power p.
  2. Enter the center a, the order N (the highest power) and the point x where you want to evaluate it.
  3. Read the polynomial, its value at x, the true value, the actual error and the Lagrange error bound.
  4. Use the table of orders to see how the error shrinks as terms are added.

Formula

T_N(x) = sum for n = 0 to N of f^(n)(a) / n! x (x - a)^n

e^x: c_n = e^a / n!; sin x: c_n = sin(a + n pi / 2) / n!; cos x: c_n = cos(a + n pi / 2) / n!

ln x: c_n = (-1)^(n+1) / (n a^n); 1 / x: c_n = (-1)^n / a^(n+1)

x^p: c_n = C(p, n) a^(p - n)

Remainder: |f(x) - T_N(x)| <= M |x - a|^(N+1) / (N+1)!, M = largest |f^(N+1)| between a and x

C(p, n) is the generalized binomial coefficient p (p - 1) ... (p - n + 1) / n!. For center 0 and the functions e^x, sin, cos, sinh and cosh the polynomial is shown with exact fractions.

sin x around 0 and ln x around 1

For sin x with center 0 and order 5 the polynomial is x - x^3 / 6 + x^5 / 120. At x = 1 it gives 0.8416666667 against the true 0.8414709848, an error of 0.0001957. The Lagrange bound is 1 / 720 = 0.001389, so the error is within the bound.

For ln x with center 1 and order 5 the coefficients are 0, 1, -1/2, 1/3, -1/4 and 1/5. At x = 1.5 the polynomial gives 0.4072916667 against ln 1.5 = 0.4054651081. The bound is 0.002604.

What a Taylor polynomial does

A Taylor polynomial replaces a smooth function by a polynomial that matches its value and its first N derivatives at the center. Near the center the two are very close, and the polynomial is easy to compute by hand or in code. Calculators and computers use this idea, in various forms, to evaluate functions such as sine and exponentials.

Adding terms usually improves the approximation near the center. The table of orders shows the error for each order at your point, so you can see how many terms are enough for a target accuracy.

Error and where the series works

The Lagrange remainder gives a guaranteed upper bound on the error, using the largest size of the next derivative between the center and the point. The bound is often larger than the actual error, but it never underestimates it. For e^x, sin x, cos x, sinh x and cosh x the series converges for every x. For ln x, 1 / x and powers it converges only within a distance of a from the center, so points far from the center give poor results at any order.

For roots of polynomials try the polynomial root finder, and for the algebra of polynomials see the polynomial arithmetic calculator. The logarithm, exponent and root calculator evaluates the true values these polynomials approximate.

Assumptions and limits

  • The function is one of the listed ones; custom expressions are not supported because derivatives are taken from closed forms.
  • For ln x and powers of x the center and the point must be above 0. For 1 / x they must be on the same side of 0.
  • Angles for sine and cosine are in radians.
  • Order is limited to 20, and values are shown with up to 10 significant digits.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What is the difference between a Taylor and a Maclaurin series?

A Maclaurin series is a Taylor series with the center at 0. Setting the center to 0 here gives the Maclaurin polynomial of the chosen function.

Why does the error bound exceed the actual error?

The bound uses the worst case of the next derivative anywhere between the center and the point. The real error depends on the derivative at one unknown point in that range, so it is often smaller.

Why is the result poor for ln x far from the center?

The series for ln x around 1 converges only for x between 0 and 2. Outside that range adding terms makes the polynomial worse, not better, so a different center is needed.

Can I use degrees for sine and cosine?

The page works in radians, as Taylor series do. To use a value in degrees, multiply it by pi and divide by 180 first, and enter the result as x.