Triangular Number Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter a position n to get the nth triangular number, or enter any whole number to see whether it is triangular and at which position.
Result
nth triangular number Tₙ = n(n + 1)/2
Sum of the first n triangular numbers n(n + 1)(n + 2)/6
- Is the tested number triangular?
- Its position k, from k = (√(8x + 1) − 1)/2
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Position n (whole number, 0 or more): enter 0 or more.
- Number to test (whole number, 0 or more): enter 0 or more.
- Read the result: nth triangular number Tₙ = n(n + 1)/2; the panel also shows Sum of the first n triangular numbers n(n + 1)(n + 2)/6, Is the tested number triangular? and Its position k, from k = (√(8x + 1) − 1)/2.
How this calculator works
The nth triangular number counts the dots in a triangle with n dots on each side: Tₙ = 1 + 2 + … + n = n(n + 1)/2, the sum Gauss is said to have found as a schoolboy. The sequence starts 0, 1, 3, 6, 10, 15, 21.
A whole number x is triangular exactly when 8x + 1 is a perfect square, because solving k(k + 1)/2 = x for k gives k = (√(8x + 1) − 1)/2. The sum of the first n triangular numbers is the tetrahedral number n(n + 1)(n + 2)/6.
The formula
| Symbol | Meaning |
|---|---|
| Position n (whole number, 0 or more) | |
| nth triangular number Tₙ = n(n + 1)/2 |
Worked example
| Position n (whole number, 0 or more) | 10 |
|---|---|
| Number to test (whole number, 0 or more) | 55 |
| Sum of the first n triangular numbers n(n + 1)(n + 2)/6 | 220 |
|---|---|
| Is the tested number triangular? | Yes |
| Its position k, from k = (√(8x + 1) − 1)/2 | 10 |
nth triangular number Tₙ = n(n + 1)/2 55
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the 10th triangular number?
T₁₀ = 10 × 11 ÷ 2 = 55. The sum of the first ten triangular numbers is 220.
Is 50 a triangular number?
No. 8 × 50 + 1 = 401 is not a perfect square, so 50 falls between T₉ = 45 and T₁₀ = 55.
What is the 100th triangular number?
T₁₀₀ = 100 × 101 ÷ 2 = 5,050, the sum of the whole numbers from 1 to 100.