Home · Everyday · Sequences & Series · Triangular Numbers Calculator
Triangular Numbers Calculator
The nth triangular number — the count of dots in a triangular stack with n rows, equal to the sum 1 + 2 + … + n.
What this calculator does
The nth triangular number — the count of dots in a triangular stack with n rows, equal to the sum 1 + 2 + … + n. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The nth triangular number counts the dots in a triangle with n rows: T(n) = 1 + 2 + … + n. Pairing the first and last terms (1 + n, 2 + (n−1), …) gives n pairs each summing to n + 1, hence the closed form T(n) = n(n+1)/2.
Two neighbouring triangular numbers always add to a square: T(n) + T(n−1) = n², which is the same fact as the check output — the first n odd numbers also sum to n². n must be a whole number; the formula still evaluates for fractions but no longer counts anything.
Worked example
With the example inputs this page opens with (n 10), the result is 55 — t(n). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| n | T(n) | T(n+1) | Check: sum of first n odd numbers = n² |
|---|---|---|---|
| 1 | 1 | 3 | 1 |
| 2 | 3 | 6 | 4 |
| 3 | 6 | 10 | 9 |
| 5 | 15 | 21 | 25 |
| 10 | 55 | 66 | 100 |
| 20 | 210 | 231 | 400 |
| 50 | 1275 | 1326 | 2500 |
| 100 | 5050 | 5151 | 10000 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is T(n) always a whole number?
Because n and n+1 are consecutive, one of them is always even, so the division by 2 in n(n+1)/2 always comes out exact.
How does the Triangular Numbers Calculator work?
The nth triangular number — the count of dots in a triangular stack with n rows, equal to the sum 1 + 2 + … + n. N → Triangular number T(n). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Triangular Numbers Calculator need?
N → Triangular number T(n). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Triangular Numbers Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.