About the Catalan Number Calculator
Catalan numbers are a famous sequence that counts many different things: balanced bracket strings, ways to split a polygon into triangles, paths that stay below a diagonal, and binary trees. This calculator gives the nth Catalan number exactly, even when it has hundreds of digits, shows how many digits it has, and lists the first sixteen values of the sequence. Type n (0 to 1,000) and the Catalan number appears at once, with a few related figures underneath, and you can copy the result with one tap. The sums run in your browser, so nothing you enter is uploaded.
Updated October 2026
How to use the Catalan Number Calculator
- 1Enter n (0 to 1,000).
- 2Pick the units or options from the menus if the Catalan number tool offers them.
- 3Read the Catalan number in the large result box.
- 4Look at the extra rows for related figures.
- 5Press Copy result to keep the answer.
When you need the Catalan number
Computer science students meet Catalan numbers when counting binary search tree shapes or ways to bracket a product. Mathematicians use them as a standard example when learning to count by bijection.
For a polygon with n + 2 sides, Cₙ is the number of ways to cut it into triangles with non-crossing diagonals. A hexagon (n = 4) can be cut in 14 ways. The same number counts the ways to fully bracket a product of n + 1 factors.
How the Catalan number is worked out
The nth Catalan number is Cₙ = (2n)! ÷ ((n + 1)! × n!). It also follows Cₙ₊₁ = Cₙ × 2(2n + 1) ÷ (n + 2), starting with C₀ = 1. C₅ = 10! ÷ (6! × 5!) = 42, so there are 42 ways to write five pairs of balanced brackets. The sequence runs 1, 1, 2, 5, 14, 42, 132, 429, 1430.
Every answer on this page comes from that one rule, so you can check any result by hand with a calculator. The figures shown underneath, such as other units, are conversions of the same answer.
- Exact big-number answers
- Shows digit count
- Lists the first sixteen values
Mistakes to avoid with Catalan number
Catalan numbers start at C₀, so the 5th number in a list that begins with C₀ is C₄ = 14, not 42. Check which index your problem uses. Also note that the numbers grow roughly like 4ⁿ, so large n gives very long answers.
On phone and computer
On a phone, type into the boxes one after another and read the Catalan number underneath; Copy result puts it on the clipboard for a message or a note. On a computer the inputs sit on the left and the answer on the right, so you can change one figure and watch the Catalan number move. The catalan number calculator works the same on both.
Checking your Catalan number by hand
A good habit is to test the catalan number calculator with a case you already know. C₅ = 10! ÷ (6! × 5!) = 42, so there are 42 ways to write five pairs of balanced brackets. The sequence runs 1, 1, 2, 5, 14, 42, 132, 429, 1430.
If your own figures give a surprising answer, repeat the working yourself: The nth Catalan number is Cₙ = (2n)! ÷ ((n + 1)! × n!). It also follows Cₙ₊₁ = Cₙ × 2(2n + 1) ÷ (n + 2), starting with C₀ = 1. Small differences usually come from rounding, from mixing units, or from a typing slip in one of the inputs. Catalan numbers grow quickly and come from counting problems, so related tools help. The Factorial Calculator shows the large products behind the formula, the Permutation and Combination Calculator covers other counting rules, and the Probability Calculator turns counts into chances.
Features
- Index starts at zero
- The numbers grow about fourfold per step
- Same value counts many structures
- Clear messages when the Catalan number inputs make no sense
- Copy the result with one tap
- Private: nothing is uploaded
Frequently asked questions
How do I calculate Catalan number?
The nth Catalan number is Cₙ = (2n)! ÷ ((n + 1)! × n!). It also follows Cₙ₊₁ = Cₙ × 2(2n + 1) ÷ (n + 2), starting with C₀ = 1. C₅ = 10! ÷ (6! × 5!) = 42, so there are 42 ways to write five pairs of balanced brackets. The sequence runs 1, 1, 2, 5, 14, 42, 132, 429, 1430.
What is the formula for Catalan number?
The nth Catalan number is Cₙ = (2n)! ÷ ((n + 1)! × n!). It also follows Cₙ₊₁ = Cₙ × 2(2n + 1) ÷ (n + 2), starting with C₀ = 1. The catalan number calculator applies it exactly and rounds only the displayed answer to six significant figures.
What are the first Catalan numbers?
1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862.
Why are Catalan numbers important?
They count many structures in counting problems, such as balanced brackets and binary trees.
How fast do they grow?
About four times larger with each step, so C₁₀₀ already has 57 digits.
Is this catalan number calculator free and private?
Yes. It is free, needs no account and runs in your browser, so the numbers you type are not uploaded or stored.