Triangular number calculator
Find the sum of the first n positive integers. Enter your numbers below to see the result and method.
inputs.
Related calculators and articles
Compare methods and explore more free tools in math.
How to use this calculator
Free Triangular number calculator. Find the sum of the first n positive integers. Review the formula and assumptions.
- Enter Index n. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
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
- Index n: Enter a non-negative whole number. The output is an integer count and has no physical unit.
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.
Read the calculation methodology.