Sum of Arithmetic Sequence- Calculation Guide

What Is an Arithmetic Sequence?

An arithmetic sequence is a list of numbers where each term increases or decreases by a fixed amount. That fixed amount is called the common difference.

For example:

The sum of an arithmetic sequence is exactly what it sounds like: adding up all the terms. You can do this manually for short sequences, but once you hit 50 or 100 terms, you'll want the formula.

The Two Formulas You Need

There are two ways to calculate the sum. Both give the same result. Pick whichever feels easier for your situation.

Formula 1: Using First and Last Term

S = n Ɨ (a₁ + aā‚™) / 2

Where:

Formula 2: Using First Term and Common Difference

S = n/2 Ɨ [2a₁ + (n-1)d]

Where d is the common difference. Use this when you don't have the last term handy.

Quick Comparison

FormulaBest WhenVariables Needed
S = n(a₁ + aā‚™)/2You know the last termn, a₁, aā‚™
S = n/2[2a₁ + (n-1)d]You only know the first term and differencen, a₁, d

How to Calculate — Step by Step

Example 1: Sum of 1 to 100

You know the classic story: Gauss added 1 through 100 in his head as a kid. Here's how it works with the formula.

Given:

Calculation:

S = 100 Ɨ (1 + 100) / 2

S = 100 Ɨ 101 / 2

S = 5050

That's it. The sum of all integers from 1 to 100 is 5,050.

Example 2: Even Numbers from 2 to 50

Given:

Calculation:

S = 25 Ɨ (2 + 50) / 2

S = 25 Ɨ 52 / 2

S = 650

The sum of even numbers from 2 to 50 is 650.

Example 3: Using the Second Formula

Say you have 15 terms, starting at 3, with a common difference of 4. You don't know the last term.

Given:

Find the last term first:

aā‚™ = a₁ + (n-1)d = 3 + (14 Ɨ 4) = 3 + 56 = 59

Now calculate the sum:

S = 15/2 Ɨ [2(3) + (15-1)(4)]

S = 7.5 Ɨ [6 + 56]

S = 7.5 Ɨ 62

S = 465

The sum is 465.

When You Don't Need a Formula

For very short sequences — say, 3 to 5 terms — just add them directly. The formula saves time when:

Common Mistakes to Avoid

Quick Reference Cheat Sheet

These shortcuts come up constantly in competitive math and coding interviews. Memorize them.

Why This Matters in Programming

If you're writing code, you don't need to loop through 10,000 numbers to add them. The formula runs in O(1) time.

Python example:

def arithmetic_sum(n, a1, d):
    an = a1 + (n - 1) * d
    return n * (a1 + an) // 2

print(arithmetic_sum(100, 1, 1))  # Output: 5050

One line. No loops. That's the point of knowing the math.

Bottom Line

The sum of an arithmetic sequence comes down to two things: how many terms and how much they're changing. Once you have those, plug into the formula and solve. The /2 at the end is non-negotiable — it's what separates the sum from the total of doubling everything.