Taylor Series Calculator
- Taylor terms for e^x around a = 0.00: the first terms are 1.0000, 1.0000, 0.5000, 0.1667.
- Adding 8 terms gives 2.7183, against the exact value 2.7183 — an error of 0.0000.
- Each added term divides by one more factorial, which is why Taylor sums home in so fast near the center — and why they drift once x moves far from a, where the higher powers stop shrinking.
A Taylor series replaces a function near a center a by a polynomial: f(a) + f'(a)(x - a) + f''(a)(x - a)^2 / 2! + ... . Our taylor series calculator uses this expansion to approximate function values to your chosen precision. Enter a function, a center point, and the number of terms, and the tool returns the polynomial approximation alongside the estimated error. Each new term divides by one more factorial, which is why Taylor sums converge so fast near the center. The results speak for themselves: e^1 from 8 terms around 0 gives 2.7183, the exact value to four decimals and an error of 0.0000. Similarly, sin(0.5) from 7 terms around 0 gives 0.4794, where the even-power terms vanish because sin(0) = 0.
The Taylor series is the accepted standard for local polynomial approximation because it captures a function's behavior through its derivatives at a single point, producing approximations that improve systematically as terms are added. The method does have limits: far from the center the powers stop shrinking and the polynomial drifts, so ln(1 + x) around 0 only converges for -1 < x <= 1 at all. Within that range, results are reliable but convergence rates vary by function. For instance, ln(1.5) from 6 terms around 0 gives 0.4073 against an exact 0.4055, an error of 0.0018 and slower convergence than the exponential. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result.
Worked examples
e^1, 8 terms at 0
Primary result: 2.7183 — eight terms land on the exact value to four decimals. (e^x · 1 · 0 · 8)
| Taylor series approximation | 2.7183 |
| Exact value | 2.7183 |
| Absolute error | 0.0000 |
| Terms used | 8 |
sin(0.5), 7 terms at 0
Primary result: 0.4794 — the vanishing even terms are why sine needs only its odd powers. (sin(x) · 0.5 · 0 · 7)
| Taylor series approximation | 0.4794 |
| Exact value | 0.4794 |
| Absolute error | 0.0000 |
| Terms used | 7 |
ln(1.5), 6 terms at 0
Primary result: 0.4073 — against an exact 0.4055, the log series converges more slowly. (ln(1 + x) · 0.5 · 0 · 6)
| Taylor series approximation | 0.4073 |
| Exact value | 0.4055 |
| Absolute error | 0.0018 |
| Terms used | 6 |
The Taylor series formula
A Taylor series replaces a function near a center a by a polynomial: f(a) + f'(a)(x - a) + f''(a)(x - a)^2 / 2! + ... Written in compact form, each term follows the structure f^(k)(a)/k! × (x - a)^k, where f^(k)(a) is the kth derivative of the function evaluated at the center a, and k! is k factorial. Each new term divides by one more factorial, which is why Taylor sums converge so fast near the center. The factorial in the denominator grows much faster than the power in the numerator, so successive terms shrink rapidly and the polynomial quickly locks onto the true function value.
When the center a equals 0, the series simplifies to what is called a Maclaurin series. This special case drops the (x - a) offset entirely, leaving terms of the form f^(k)(0)/k! × x^k. A taylor series calculator typically lets you choose any center, but a = 0 is the most common choice because the derivatives often take clean, predictable forms at that point. For e^x, every derivative at 0 is 1, so the terms are x^k / k!. For sin(x), the derivatives cycle through 1, 0, -1, and 0, which means the even-power terms vanish because sin(0) = 0. For cos(x), the pattern is similar but shifted, producing only even powers. For ln(1 + x), the derivatives alternate in sign and decrease, giving terms like x - x^2/2 + x^3/3 - x^4/4 and so on.
The worked examples show how this plays out in practice. Using 8 terms of the Maclaurin series for e^x evaluated at x = 1 gives 2.7183 — the exact value to four decimals, an error of 0.0000. For sin(0.5), 7 terms around 0 gives 0.4794; the even-power terms vanish because sin(0) = 0, so only the odd powers contribute. For ln(1.5), 6 terms around 0 gives 0.4073 against an exact 0.4055 — an error of 0.0018, slower convergence than the exponential. The difference matters because each function's derivative pattern controls how quickly the polynomial settles onto the true value.
Far from the center the powers stop shrinking and the polynomial drifts — ln(1 + x) around 0 only converges for -1 < x <= 1 at all. Outside that interval the terms grow rather than shrink, and no number of terms will bring the sum closer to the function. This is why the choice of center matters: a series centered near the point you want to evaluate will converge faster and stay accurate over a wider range than one centered far away.
Worked examples
A Taylor series replaces a function near a center a by a polynomial: f(a) + f'(a)(x - a) + f''(a)(x - a)^2 / 2! + ... Each new term divides by one more factorial, which is why Taylor sums converge so fast near the center. The three cases below show how this plays out when you use a taylor series calculator, including one case where convergence slows because the input sits farther from the chosen center.
Take e^1 as the first case. Expanding the exponential function around a center of 0 and keeping 8 terms produces 2.7183. That matches the exact value to four decimals, giving an error of 0.0000. The factorial denominators in each successive term shrink the contributions rapidly, so the polynomial settles onto the true value with very few terms. This is the ideal scenario: the input sits at the center, and every added term pulls the approximation closer without any drift.
The sine function behaves a little differently but still converges cleanly. Approximating sin(0.5) from 7 terms around 0 gives 0.4794. The even-power terms vanish because sin(0) = 0, so only the odd powers contribute. With those zero terms removed, the remaining factorial-divided terms still shrink quickly, and the result lands on 0.4794. Like the exponential, the input stays close to the center, so the polynomial tracks the true function tightly.
The logarithm shows what happens when the input moves away from the center. Approximating ln(1.5) from 6 terms around 0 gives 0.4073 against an exact 0.4055, an error of 0.0018 — slower convergence than the exponential. Far from the center the powers stop shrinking and the polynomial drifts. In fact, ln(1 + x) around 0 only converges for -1 < x <= 1 at all. The input 1.5 sits inside that boundary but far enough from 0 that the approximation needs more terms to tighten. The table below summarizes each case.
| Function | Input | Center | Terms used | Approximation | Exact value | Error |
|---|---|---|---|---|---|---|
| e^x | 1 | 0 | 8 | 2.7183 | 2.7183 | 0.0000 |
| sin(x) | 0.5 | 0 | 7 | 0.4794 | 0.4794 | 0.0000 |
| ln(1 + x) | 1.5 | 0 | 6 | 0.4073 | 0.4055 | 0.0018 |
How fast do Taylor series converge?
A Taylor series replaces a function near a center a by a polynomial: f(a) + f'(a)(x - a) + f''(a)(x - a)^2 / 2! + ... The structure of that polynomial tells you a great deal about how quickly the approximation settles down. Each new term divides by one more factorial, which is why Taylor sums converge so fast near the center. Because factorials grow much faster than ordinary powers, the denominator eventually overwhelms the numerator and successive terms shrink to almost nothing.
The exponential function shows this speed best. A Taylor series calculator computing e^1 from 8 terms around 0 gives 2.7183 — the exact value to four decimals, an error of 0.0000. The sine and cosine series converge just as quickly. For sin(0.5) from 7 terms around 0 gives 0.4794; the even-power terms vanish because sin(0) = 0, so only the odd powers contribute and the factorial denominators do the rest. Within a narrow window around the center, these functions behave almost like their polynomial stand-ins.
Not every function is so cooperative. The same factorial denominators appear in every Taylor series, but the numerators can grow fast enough to fight back. For ln(1.5) from 6 terms around 0 gives 0.4073 against an exact 0.4055 — an error of 0.0018, slower convergence than the exponential. The logarithm's derivatives pick up factors that offset the factorial in the denominator, so the terms shrink more reluctantly and the partial sums take longer to settle.
Far from the center the powers stop shrinking and the polynomial drifts — ln(1 + x) around 0 only converges for -1 < x <= 1 at all. This boundary is called the radius of convergence, and it equals 1 for both ln(1 + x) and 1/(1 - x) expanded around 0. Inside that radius the series converges; outside it the terms stop shrinking and the polynomial drifts away from the true function. A Taylor series calculator that ignores the radius will happily produce numbers that look precise but diverge from the real answer, so knowing where the series is valid matters as much as knowing how to compute it.
Choosing the center and the term count
A Taylor series replaces a function near a center a by a polynomial: f(a) + f'(a)(x - a) + f''(a)(x - a)^2 / 2! + ... The center you choose matters as much as the number of terms you include. When you use a Taylor series calculator, the first decision is where to anchor the polynomial and how many terms to generate before stopping. Both choices shape the accuracy you get back.
Center the expansion near the point where you need the best result. Each new term divides by one more factorial, which is why Taylor sums converge so fast near the center. Far from the center the powers stop shrinking and the polynomial drifts — ln(1 + x) around 0 only converges for -1 < x <= 1 at all. If you need a value at x = 1.5, a series built around 0 will struggle or fail outright, while one centered closer to 1.5 stays useful with fewer terms.
More terms help near the center and cost nothing but patience. The worked examples make this concrete. For e^1 from 8 terms around 0, the result is 2.7183 — the exact value to four decimals, an error of 0.0000. For sin(0.5) from 7 terms around 0, the result is 0.4794; the even-power terms vanish because sin(0) = 0, so those seven terms are doing the work of far fewer nonzero contributions.
Not every function converges as quickly as the exponential. For ln(1.5) from 6 terms around 0, the result is 0.4073 against an exact 0.4055 — an error of 0.0018, slower convergence than the exponential. For sin and ln, the alternating-series error bound gives you a safety check: when terms alternate in sign and shrink in size, the error after stopping is no larger than the first term you left out. That bound lets you pick a term count with confidence instead of guessing.
FAQs
What is a Taylor series?
A Taylor series is an infinite polynomial built from a function's derivatives at one point. When truncated, it approximates the function nearby. For example, 8 terms give e^1 as 2.7183. The more terms you include, the closer the polynomial matches the original function near that chosen point.
What is the difference between Taylor and Maclaurin series?
A Maclaurin series is simply a Taylor series centered at 0. So every Maclaurin series is a Taylor series, but not every Taylor series is a Maclaurin series. All three worked examples here are Maclaurin series, meaning each one expands its function around the point x equals 0.
How many terms do I need?
Near the center, few: 7 terms give sin(0.5) to four decimals. Farther away or for slow series like ln(1 + x), more — 6 terms still leave an error of 0.0018. The number of terms you need depends on how far your input is from the center and how quickly the series converges.
Why do some Taylor terms vanish for sin and cos?
Their derivatives at 0 cycle through sin and cos values, and sin(0) = 0 kills every even term of sin's series (odd for cos). This pattern means sine's expansion contains only odd powers of x, while cosine's expansion contains only even powers, making both series simpler than many other functions' expansions.
When does a Taylor series fail?
Outside its radius of convergence: ln(1 + x) around 0 diverges for x above 1 no matter how many terms are added. Every Taylor series has a limited range where it converges to the function. Beyond that range, adding more terms does not improve the approximation — the series simply fails to approach the function's value.
What is the Taylor series of e^x?
1 + x + x^2/2! + x^3/3! + ... — every derivative of e^x at 0 is 1, which is why its terms are just powers over factorials. Each term adds x raised to a power divided by that power's factorial, creating a series that converges for every real number x.