Taylor Series Calculator

Partial sum (Taylor approximation)—
True value f(x)—
Absolute error—
Series terms—

How Taylor Series Calculator is calculated: f(x) = Σ f⁽ᵏ⁾(a)(x − a)ᵏ ÷ k! for k = 0..n (derivatives exact for the preset functions)

What is a Taylor Series Calculator?

The Taylor Series Calculator is a free online tool that expands a function as a Taylor series about a point and adds up the first few terms, so you can see how a polynomial approximates the function. Calculus students working through Taylor and Maclaurin series use it when the series for sin, cos, eˣ or ln(1+x) written out term by term, and the value of the partial sum at a point. Instead of working out the derivatives at the centre, dividing by factorials, and then adding the terms without dropping one, you type the function, the centre a, the x to evaluate at, and how many terms to include and the calculator returns the partial sum, the true value of the function, the error between them, and the series written out term by term straight away.

The working idea is simple. the calculator uses the exact analytic derivatives of the chosen function at the centre, builds each term f⁽ᵏ⁾(a)(x − a)ᵏ ÷ k!, and adds the terms up to order n For sin and cos the derivatives cycle through sin and cos with signs; for eˣ every derivative is eᵃ; for ln(1+x) the k-th derivative is (−1)ᵏ⁺¹(k−1)! ÷ (1+a)ᵏ. Because the derivatives are exact, the only error in the partial sum is the missing tail of the series. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.

That matters because a Taylor series turns a complicated function into a polynomial, and polynomials are easy to evaluate, integrate and differentiate — that is why series sit at the heart of numerical computing The partial sum is an approximation: it improves as you add terms, but far from the centre it can be slow to converge, and for ln(1+x) it only converges when |x − a| is small enough. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.

How a Taylor Series Calculator works

At its core, the calculator applies the Taylor series is the sum over k of the k-th derivative at a times (x − a) to the k, divided by k factorial. f(x) = Σ f⁽ᵏ⁾(a)(x − a)ᵏ ÷ k! for k = 0, 1, 2, ... . With a = 0 the series is called a Maclaurin series. Each term corrects the previous ones, and the error after n terms is roughly the size of the first term left out. The formula box at the top of this page shows the same rule in symbols: f(x) = Σ f⁽ᵏ⁾(a)(x − a)ᵏ ÷ k! for k = 0..n (derivatives exact for the preset functions).

The calculator evaluates the exact derivatives listed above, so there is no finite-difference error in the terms. The true value is computed directly from the function, so the error shown is the genuine truncation error of the partial sum, not a rounding artefact. For ln(1+x) the centre must be greater than −1, because ln(1+x) is not defined at or below −1. The number of terms is capped at 8, which is enough to see the convergence pattern clearly.

The derivatives are exact, so the error shown is the true truncation error of the partial sum A derivative calculator can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.

The the number of terms explained

The number of terms decides how good the approximation is, and the mistake people make is stopping too early and trusting the answer. With sin x at x = 1, three terms give 0.8333 against a true value of 0.8415 — close, but off by 0.008. Five terms give 0.8417, off by only 0.0002. The error falls fast as terms are added, but only if you actually add them.

Start with 3 terms and watch the error, then raise the count and watch it shrink. If the error barely moves when you add a term, the series has converged for practical purposes at your x; if it is still large, add more terms or move x closer to the centre. The error after n terms is roughly the size of the first term you left out, so you can estimate it before you compute: if the next term would be 0.001, your error is about 0.001.

For sin x with centre 0 and three terms, the series is x − x³/6, so at x = 1 it gives 1 − 1/6 = 0.8333, which is what the calculator shows. A integral calculator is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.

A worked example

Take the default settings on this page: sin x about the centre a = 0, evaluated at x = 1, with 3 terms.

The series is x - x^3/6. At x = 1 the partial sum is 0.8333, while the true value sin(1) is 0.8415, so the error is 0.0081.

Three terms already get within 0.01 of the true value, which shows how fast the Taylor series for sin converges near the centre. Add two more terms and the error falls below 0.001 — try it by raising the term count to 5. The first term alone gives 1, which is already within 0.16 of the truth; the second term, −1/6, pulls it down to 0.8333, closer still. Each term corrects the last, which is the whole idea of the series.

Where the Taylor Series Calculator is used

In numerical computing, Taylor series are how calculators evaluate sin, cos and eˣ: the chip adds up a polynomial, because a polynomial is just multiplication and addition, which hardware does fast.

In physics, the first one or two terms of a series give the approximations everyone actually uses — sin x ≈ x for small angles in the pendulum, and eˣ ≈ 1 + x for small growth rates. A trigonometry calculator often sits next to it in the same workflow, because the two answers answer different halves of the same question.

In calculus classes, series are the bridge between differentiation and approximation: they show that knowing all the derivatives at one point is the same as knowing the function nearby.

It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.

Taylor Series Calculator vs Derivative Calculator

A derivative calculator gives you one derivative at one point. This calculator uses all the derivatives at the centre — the first, second, third and beyond — and builds a whole polynomial out of them. The derivative is the raw material here, not the finished answer.

Use the derivative calculator when you need a single slope. Use this one when you need an approximation to the function itself, valid near a point, that you can evaluate, integrate or differentiate as a polynomial. The scientific calculator covers the other side of the same problem, so the two tools complement each other rather than compete.

The two agree where they overlap: the first two terms of the series are f(a) + f′(a)(x − a), which is the tangent line — exactly what the derivative calculator and the tangent line tool give you.

Common mistakes with the Taylor Series Calculator

The first mistake is forgetting the factorial in the denominator. The k-th term is divided by k!, not by k, so the third term of sin x is x³/6, not x³/3 — and forgetting the factorial makes every term after the first far too big.

The second mistake is using too few terms far from the centre. A series about 0 works well at x = 1 and badly at x = 10, where you would need many more terms; if the error is still large, move the centre closer or add terms.

The third mistake is assuming the series always converges. The series for ln(1+x) only converges for |x| < 1 (and at x = 1), so evaluating it at x = 5 gives nonsense no matter how many terms you add — the function is fine there, but its Taylor series about 0 is not.

How to use this Taylor Series Calculator

Open the page and enter the function, the centre a, the x to evaluate at, and how many terms to include. Pick the function, set the centre a — 0 for a Maclaurin series — enter the x to evaluate at, and choose the highest order n. Watch the error shrink as you raise the order.

Read the partial sum as the polynomial approximation, the true value as the exact answer, and the error as the gap between them — the number that tells you whether you have enough terms. Read the series terms as the polynomial itself: it is the function, approximated, written in a form you can copy into your homework.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a derivative calculator will confirm the arithmetic.

Frequently Asked Questions

The series is x - x^3/6. The partial sum is 0.8333, the true value sin(1) is 0.8415, and the error is 0.0081.

the Taylor series is the sum over k of the k-th derivative at a times (x − a) to the k, divided by k factorial f(x) = Σ f⁽ᵏ⁾(a)(x − a)ᵏ ÷ k! for k = 0, 1, 2, ... . With a = 0 the series is called a Maclaurin series. Each term corrects the previous ones, and the error after n terms is roughly the size of the first term left out.

It depends on the function and how far x is from the centre. Near the centre, orders 3 to 5 are often enough for three or four correct decimals; far from the centre you may need a higher order. Watch the error shown: when raising the order barely changes the sum, you have enough.

A Maclaurin series is a Taylor series with the centre a = 0 — the same formula, just centred at zero. The series for sin x about 0, x − x³/6 + x⁵/120, is a Maclaurin series; the series for sin x about a = 1 would be a Taylor series with a different centre and different coefficients.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.