The Arithmetic Sum Formula

The sum of a linear sequence depends on three quantities: the first term, the constant step between consecutive terms, and the total count of terms. Rather than adding each value individually, you can use an elegant closed-form expression.

S = (n ÷ 2) × (2a + d × (n − 1))

OR equivalently:

S = (n ÷ 2) × (a + l)

  • S — Sum of all terms in the sequence
  • n — Number of terms (periods)
  • a — First term of the sequence
  • d — Common difference between consecutive terms
  • l — Last (nth) term of the sequence

Understanding Linear Sequences

A linear sequence, also called an arithmetic progression, is any ordered list where the gap between adjacent numbers remains constant. Examples include:

  • 2, 4, 6, 8, 10 (difference of 2)
  • 100, 95, 90, 85 (difference of −5)
  • 1.5, 2.0, 2.5, 3.0 (difference of 0.5)

The difference can be positive (increasing sequence), negative (decreasing sequence), or even fractional. Once you know the starting value, the difference, and how many terms exist, the entire sequence is determined. The beauty of the formula is that it avoids summing every single term—critical when working with hundreds or thousands of elements.

Step-by-Step Calculation

Method 1: Using first term and common difference

  1. Identify your starting term a and common difference d.
  2. Count the total number of terms n.
  3. Calculate the last term: l = a + d × (n − 1).
  4. Apply the formula: S = (n ÷ 2) × (a + l).

Method 2: Direct formula substitution

  1. Plug a, d, and n into: S = (n ÷ 2) × (2a + d × (n − 1)).
  2. Perform the arithmetic in the correct order.

Real-World Example: Subscription Revenue

Suppose a SaaS company offers tiered annual plans where each tier costs $100 more than the previous one. The entry-level plan costs $500, and they have 12 subscription tiers:

  • Tier 1: $500
  • Tier 2: $600
  • Tier 3: $700
  • Tier 12: $1,600

Using the formula with a = 500, d = 100, and n = 12:

S = (12 ÷ 2) × (500 + 1,600) = 6 × 2,100 = 12,600

The total revenue across all tiers is $12,600, without manually listing and adding each one.

Common Pitfalls and Practical Notes

When working with arithmetic sequences, watch for these frequent mistakes and considerations.

  1. Counting terms correctly — Ensure you count both endpoints. The sequence 10, 12, 14, 16 contains 4 terms, not 3. A common error is counting only the "gaps" rather than the actual elements themselves.
  2. Handling negative differences — Sequences can decrease (negative difference). The formula works identically—just ensure you apply the sign correctly when computing intermediate steps. For 50, 45, 40, 35, use <em>d</em> = −5, not 5.
  3. Verifying your last term — Always double-check the final term using <em>l</em> = <em>a</em> + <em>d</em> × (<em>n</em> − 1) before entering it into the sum formula. A miscalculation here propagates to the final answer.
  4. Non-integer differences — Arithmetic sequences need not involve whole numbers. Differences like 0.25 or 1/3 are perfectly valid. The formula remains unchanged; just preserve precision in your calculations.

Frequently Asked Questions

How is the sum formula for arithmetic sequences derived?

The derivation hinges on a clever pairing trick. If you write the sequence forwards and backwards, then add term-by-term, each pair sums to the same value: (first term + last term). With <em>n</em> pairs, the total is <em>n</em> × (first + last). Dividing by 2 (since we counted each term twice) yields <em>S</em> = (<em>n</em> ÷ 2) × (first + last). This elegant insight avoids brute-force addition entirely.

Can I use this calculator if I only know the first term and the last term?

Yes. If you know the first term <em>a</em>, the last term <em>l</em>, and the number of terms <em>n</em>, use the simplified form: <em>S</em> = (<em>n</em> ÷ 2) × (<em>a</em> + <em>l</em>). You don't need to enter the common difference at all. The calculator will compute it for you as <em>d</em> = (<em>l</em> − <em>a</em>) ÷ (<em>n</em> − 1) if needed for verification.

What is the sum of the integers from 1 to 100?

The natural numbers 1, 2, 3, …, 100 form an arithmetic sequence with <em>a</em> = 1, <em>d</em> = 1, and <em>n</em> = 100. Using the formula: <em>S</em> = (100 ÷ 2) × (1 + 100) = 50 × 101 = 5,050. This result is famous and often attributed to the young mathematician Carl Friedrich Gauss, who recognised the pattern as a child.

Why is the common difference sometimes called the "common ratio"?

It isn't—these are distinct concepts. A common <em>difference</em> (arithmetic sequence) means you add a fixed number each time. A common <em>ratio</em> (geometric sequence) means you multiply by a fixed number each time. For instance, 2, 4, 8, 16 has a common ratio of 2, not a common difference. This calculator handles only arithmetic sequences with constant differences.

Can the common difference be zero?

Yes, technically. If <em>d</em> = 0, every term equals the first term <em>a</em>. The sequence becomes <em>a</em>, <em>a</em>, <em>a</em>, … and the sum is simply <em>S</em> = <em>n</em> × <em>a</em>. While degenerate, the formula still applies: <em>S</em> = (<em>n</em> ÷ 2) × (2<em>a</em> + 0) = <em>n</em> × <em>a</em>.

How do fractional or decimal sequences affect the calculation?

They don't—the formula is indifferent to whether your values are integers, decimals, or fractions. A sequence like 0.5, 1.0, 1.5, 2.0, 2.5 with <em>d</em> = 0.5 works identically to whole-number sequences. Simply maintain adequate decimal precision throughout your computation, especially when the common difference is not a whole number or when dividing by 2.

More math calculators (see all)