Skip to content
D DocNectar

Free Triangular Numbers Calculator

Find the nth triangular number, or check whether a given number is triangular and identify which n it corresponds to.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

A triangular number counts the dots that form an equilateral triangle — 1, 3, 6, 10, 15, and so on. This tool calculates the nth triangular number directly, or checks whether a given number is triangular and finds which n it corresponds to.

How it works

The nth triangular number is n(n+1)/2. To check if a number is triangular, this formula is solved in reverse using the quadratic formula: n = (−1 + √(1 + 8×number)) / 2 — if this comes out to a whole number, the original number is triangular.

  1. Enter mode.
  2. Enter n (if finding the nth triangular number).
  3. Enter number to check (if checking).
  4. Click Calculate to see your results.

Examples

Finding the 6th triangular number

T₆ = 6×7/2 = 21.

Checking if a number is triangular

21 is triangular (it's T₆), but 22 is not, since solving the reverse formula for 22 does not give a whole number.

Who should use it

  • Combinatorics and number theory coursework.
  • Recreational mathematics and pattern exploration (triangular number sequences).

Industry applications

  • Mathematics education (number theory and combinatorics)
  • Recreational mathematics

Advantages

  • Handles both directions: finding T_n from n, and identifying n from a candidate triangular number.
  • Shows the quadratic-formula reasoning for the reverse check.

Limitations

  • Limited to n up to 1,000,000 for the forward calculation to keep results manageable.

Common mistakes to avoid

  • Assuming every number close to a triangular number is itself triangular — the check requires an exact whole-number solution to the reverse formula, not just an approximate match.

Best practices

  • When checking by hand whether a number is triangular, test whether 8× that number + 1 is a perfect square — it's a quick way to verify before doing the full quadratic solve.

Tips

  • Triangular numbers and square numbers are closely related — every square number can be written as the sum of two consecutive triangular numbers.

Frequently asked questions

The nth triangular number equals "n+1 choose 2" — the number of ways to choose 2 items from n+1, which is why triangular numbers appear frequently in combinatorics.
A number x is triangular exactly when 8x + 1 is a perfect square — this tool applies that same underlying logic when checking a number, by solving the quadratic and testing whether the result is a whole number.

Get new calculators and guides in your inbox

No spam — just new tools like Triangular Numbers Calculator and practical guides.

Favorites