Catalan Numbers Calculator

Catalan number with formula and meaning.

Math and PercentUpdated 2026-10-131 min read
Catalan Numbers Calculator
Catalan number
...
Formula...
Meaning...

What it does

Catalan numbers count shapes: parenthesizations, binary trees, and mountain paths all total the same sequence 1, 1, 2, 5, 14. One formula rules every reading.

The tool above takes index n. It returns C(n) with the formula and meaning.

The default n = 10 gives 16796 from 184756 over 11. The n = 4 case gives 14, and n = 0 gives 1.

Sequence references tabulate Catalan from the binomial quotient with matching openers. Combinatorics texts count the same trees and paths beside.

Shapes multiply fast: C(10) already nears seventeen thousand while C(20) passes billions. Exact integer math holds this page through 25.

How to use

  1. Type n from 0 to 25.
  2. Read C(n) first.
  3. Read the formula beside it.
  4. Read the meaning last.
  5. Compare small cases by hand.
  6. Respect the 25 cap.

Formula

C(n) = (2n)!/((n+1)!n!). n 0 to 25, exact integer math.
n
Index 0 to 25.
C(n)
nth Catalan number.

OEIS tabulates Catalan numbers with the binomial quotient definition. LibreTexts combinatorics mirrors the same parenthesization and tree counting. Multiplicative stepping keeps integers exact through n = 25.

Worked example

Example: Catalan 10

Default: n = 10.

  1. Index: n = 10.
  2. Binomial: C(20,10) = 184756.
  3. Divide: 184756 / 11 = 16796.
  4. Check: OEIS matches 16796.
  5. Meaning: binary trees and paths count.
  6. Tool shows C(10) = 16796, (2n)!/((n+1)!n!), Counts binary trees and paths.

Reference table

Catalan starters
nC(n)Note
01Seed
11Seed
4143 + paths
1016796Trees
159694845Large

Common mistakes

Try it yourself

Quick checks. Answers sit tucked under each question.

n = 4?

C(4) = 14 from 70/5.

n = 0?

C(0) = 1, the empty product seed.

n = 99?

Past 25 floats round: enter 0 to 25.

Questions

Catalan formula?

(2n)! over (n+1)!n!. C(4) = 70/5 = 14.

Openers?

1, 1, 2, 5, 14, 42, 132, 429, 1430, 16796 at n = 0 through 10.

Counts what?

Parenthesizations, binary trees, Dyck paths, triangulations all count Catalan.

Exact values?

Yes, integer stepping stays exact through n = 25 here.

Whole sequence?

No, this runs one index. OEIS tables list ranges.

Fibonacci same?

No, cousins with other recurrences need their own pages.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.