🧮
🧮 Math & statistics

Taylor Series Calculator (eˣ, sin, cos, ln(1+x))

Results update as you type.

Your numbers

Understanding the Taylor series calculator — concept and principle

A Taylor series writes a function as an infinite polynomial built from its derivatives at one point. This calculator uses the Maclaurin series (Taylor series around 0) of eˣ, sin x, cos x and ln(1 + x), adds the number of terms you choose, and compares the partial sum with the exact value. It shows how quickly a series converges and how computers can evaluate such functions.

Taylor series of e to the x at x = 0.5Terms 1, 0.5, 0.125, 0.0208, 0.0026 and 0.0003 add to 1.648697917, 0.000023 short of e^0.5 = 1.648721271.e^0.5 built from 6 shrinking terms11+ 0.50.5+ 0.5² ÷ 20.125+ 0.5³ ÷ 60.0208333+ 0.5⁴ ÷ 240.0026042+ 0.5⁵ ÷ 1200.0002604Sum = 1.648697917exact 1.648721271 · error 0.000023Next term 0.5⁶ ÷ 720 ≈ 0.0000217 — about the error
Each term xᵏ ÷ k! is far smaller than the last, so six terms already give five correct digits.

How it is calculated

The calculator adds the first k non-zero terms of:

x for sin and cos is in radians. The error is |series value − exact value|.

The principle

A Taylor polynomial is the polynomial that matches the function's value and its first several derivatives at the centre point: the general term is f⁽ⁿ⁾(0)xⁿ/n!. For eˣ every derivative equals eˣ, which is 1 at 0, so all coefficients are 1/n!. For sin and cos the derivatives cycle through sin, cos, −sin, −cos, which is why only odd or only even powers appear with alternating signs. The more derivatives you match, the further from 0 the polynomial stays close to the curve.

Worked example

  1. Default inputs: function eˣ, x = 0.5, terms k = 6.
  2. Terms: 1, 0.5, 0.125, 0.0208333, 0.0026042, 0.0002604.
  3. Sum: 1.648697917.
  4. Exact: e^0.5 = 1.648721271.
  5. Error: 1.648721271 − 1.648697917 = 0.000023354. The first omitted term is 0.5⁶/720 ≈ 0.0000217, which is close to the actual error, as expected.
How Series value changes with xHow Series value changes with x11.522.530.1250.250.3750.50.6250.751Example: 1.648697917x
Each point is the calculator re-run with only “x” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
xSeries value
0.1251.133148448
0.251.284025065
0.3751.454987335
0.51.648697917
0.6251.868155162
0.752.116723633
12.716666667

How to read the result

The error tells you how many correct digits the partial sum has; here about four decimal places. Small |x| gives very fast convergence; larger |x| needs more terms. For sin and cos with alternating terms, the error is smaller than the first omitted term once the terms are decreasing. For ln(1 + x) near x = 1 convergence is very slow, and for x > 1 or x ≤ −1 the series diverges, so the error grows instead of shrinking.

Common mistakes

Keep in mind: Partial sums with large |x| can suffer from cancellation between huge positive and negative terms. Real libraries first reduce the argument (for example using periodicity) before using a series.

Frequently asked questions

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

A Maclaurin series is a Taylor series centred at 0. A Taylor series can be centred at any point a, using powers of (x − a).

Does every function have a Taylor series?

Only functions with all derivatives at the centre, and even then the series may not equal the function far from it.

Why does ln(1 + x) stop working at x = 1.5?

Its series has radius of convergence 1, because ln(1 + x) is undefined at x = −1, a distance 1 from the centre.

Sources: Stewart, J., Calculus: Early Transcendentals, §11.10 Taylor and Maclaurin Series · NIST Digital Library of Mathematical Functions, §4.6 and §4.19 (dlmf.nist.gov)

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →