Calculators.Life Calculator
Math

Infinite Series Calculator

Input Parameters

Scenarios
First term 'a' for geometric series, or numerator variable 'x' for exponential series
Common ratio 'r' for geometric series, or power 'p' for p-series
Number of terms computed for finite partial sum evaluation

Computed Results

Exact Infinite Sum (S_∞)
2
Convergence StatusConverges (|r| < 1)
Partial Sum (S_N)2
Estimated Truncation Error0

The infinite series calculator determines whether a mathematical series converges or diverges and computes its exact infinite sum when applicable. It evaluates geometric, p-series, alternating, and exponential series, providing both the theoretical limit and the finite partial sum for a specified number of terms.

How to Use the Calculator

Follow these steps to evaluate a series and compute its sums:

  1. Select the Series Type: Choose from geometric, p-series, alternating p-series, or exponential series.
  2. Enter the Primary Parameter: Input the first term (a) for a geometric series, or the numerator variable (x) for an exponential series. For p-series, this value is fixed at 1.
  3. Set the Ratio or Exponent: Enter the common ratio (r) for geometric series, or the power (p) for p-series and alternating series.
  4. Define Partial Sum Terms (N): Specify how many terms (up to 10,000) to include in the finite partial sum calculation.
  5. Review the Results: The calculator will output the convergence status, the exact infinite sum (if a closed-form solution exists), the partial sum, and the estimated truncation error.

Infinite Series Formulas and Convergence

The calculator evaluates four distinct types of infinite series using standard calculus convergence tests.

Geometric Series

A geometric series multiplies each successive term by a common ratio, r. It converges only if the absolute value of the common ratio is strictly less than 1.

S_∞ = a ÷ (1 − r)

If |r| ≥ 1, the series diverges and no finite sum exists.

P-Series

A p-series takes the sum of the reciprocals of positive integers raised to a power p. By the p-series test, it converges if p > 1 and diverges if p ≤ 1.

S_∞ = Σ (1 ÷ k^p)

For specific values like p = 2 (the Basel problem), the exact infinite sum is π² ÷ 6.

Alternating P-Series

This series alternates signs between positive and negative. According to the Alternating Series Test (AST), it converges as long as p > 0.

S_∞ = Σ ((−1)^(k+1) ÷ k^p)

Exponential Series

The exponential series is the Maclaurin series expansion for e^x. By the Ratio Test, this series converges for all real numbers.

S_∞ = Σ (x^k ÷ k!) = e^x

Inputs and Outputs Explained

FieldTypeDescription
Series TypeInputThe mathematical structure of the series being evaluated.
First Term (a) or Value (x)InputThe starting value for geometric series or the exponent variable for exponential series.
Common Ratio (r) or Exponent (p)InputThe multiplier for geometric series or the power for p-series.
Partial Sum Terms (N)InputThe number of terms to add together for the finite approximation.
Convergence StatusOutputStates whether the series converges to a finite number or diverges to infinity.
Exact Infinite Sum (S_∞)OutputThe theoretical limit of the series as the number of terms approaches infinity.
Partial Sum (S_N)OutputThe sum of the first N terms.
Estimated Truncation ErrorOutputThe absolute difference between the exact infinite sum and the partial sum.

Verified Calculation Examples

Here are four verified scenarios demonstrating how different series behave based on their parameters.

1. Divergent Geometric Series

If you evaluate a geometric series with a first term of 5, a common ratio of 1.5, and 100 terms, the absolute value of the ratio is greater than 1. The calculator confirms the status as Diverges (|r| >= 1). The infinite sum is undefined, while the partial sum of the first 100 terms grows massively to 4,065,611,775,352,149,500.

2. P-Series (Basel Problem)

Evaluating a p-series with p = 2 for 500 terms yields a known convergent result. The status is Converges (p > 1). The exact infinite sum is 1.64493407 (which is π² ÷ 6). The partial sum after 500 terms is 1.64293607, leaving a truncation error of 0.001998.

3. Alternating Harmonic Series

An alternating p-series with p = 1 evaluated over 1,000 terms converges by the Alternating Series Test. The exact infinite sum is the natural logarithm of 2, or 0.69314718. The partial sum is 0.69264743, with a truncation error of 0.000999.

4. Exponential Series

Testing an exponential series with x = 2.5 for just 10 terms shows rapid convergence. The status is Converges everywhere. The exact infinite sum (e^2.5) is 12.18249396. Even with only 10 terms, the partial sum reaches 12.17911512, resulting in a small truncation error of 0.00337884.

Practical Use Cases

Evaluating infinite series is a fundamental process in calculus, physics, and computer science. Students use these calculations to verify convergence tests and check homework answers for geometric and p-series problems. In numerical analysis, computing partial sums and truncation errors helps determine how many terms are required to approximate transcendental functions (like e^x) to a desired level of precision.

Frequently Asked Questions

What is the difference between an infinite sum and a partial sum?

An infinite sum is the theoretical limit of adding an infinite number of terms together, assuming the series converges. A partial sum is the actual addition of a specific, finite number of terms (N) from the beginning of the series.

Why does the calculator leave the exact infinite sum blank for some convergent p-series?

While a p-series converges for any p > 1, exact closed-form mathematical solutions (like π² ÷ 6 for p = 2) are only known or programmed for specific integer values. For other values, the exact sum relies on the Riemann zeta function, so the calculator relies on the partial sum to approximate the value.

What does truncation error mean?

Truncation error is the difference between the exact infinite sum and the finite partial sum. It represents the mathematical remainder that is cut off (truncated) when you stop adding terms at N instead of continuing to infinity.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.