CalcWorldHub
Free online calculator · no signup

Triangular number calculator

Find the sum of the first n positive integers. Enter your numbers below to see the result and method.

A better way to figure it out
Clear
inputs.
∑
Clear result · useful details
Free calculatorNo signup ✓

Related calculators and articles

Compare methods and explore more free tools in math.

Browse the full math category →

Triangular number calculator — Index n and calculation method
Triangular number calculator: inputs and calculation method.

How to use this calculator

Free Triangular number calculator. Find the sum of the first n positive integers. Review the formula and assumptions.

  1. Enter Index n. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Integer sequence

Sum the first n positive integers

The nth triangular number is the total 1 + 2 + ⋯ + n. It counts objects arranged in rows of 1 through n, with each new row adding one more object than the previous row.

Input and domain

Formula and method

Tn = n(n + 1) / 2

The factors n and n + 1 are consecutive, so one is even; their product divides evenly by two.

Worked example

For n = 25, T25 = 25 × 26 / 2 = 325. This is the total in 25 rows containing 1, 2, …, 25 objects.

Interpretation and limits

The output is a sum, not n squared. Increasing n by one adds exactly n + 1 to the total. At n = 0 the sum is empty and equals zero; fractional or negative indices are outside this sequence definition.

Frequently asked questions

Is a triangular number the same as n squared?

No. It is the sum 1 + 2 + ⋯ + n, equal to n(n + 1)/2; n squared is the product n × n.

What does the number count?

It counts objects arranged in n rows when row r contains r objects.

What does n = 0 return?

Zero, the sum of no positive integers.

How do I use the Triangular number calculator?

Enter Index n. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Triangular number?

For n = 25, T 25 = 25 × 26 / 2 = 325. This is the total in 25 rows containing 1, 2, …, 25 objects.