Multifactorial Calculator (n!!, n!!!)

Calculate the multifactorial n!!, n!!! or any step-k factorial, with the full multiplication chain shown. Clears up the classic n!! vs (n!)! mix-up.

Loading calculator…

How to use this calculator

Enter n and the step (k) — k = 1 gives the ordinary factorial n!, k = 2 gives the double factorial n!!, k = 3 gives n!!!, and so on up to k = 9. The calculator shows the live notation, multiplies n downward in steps of k, and gives the exact value.

Tip: The two exclamation marks in n!! do not mean "take the factorial twice." They mean "skip every other number." See the callout below the answer for a worked comparison.

What is a multifactorial?

The ordinary factorial n! multiplies every integer from n down to 1. A multifactorial instead skips ahead by a fixed step k each time:

NotationStepExample
n!15!=5×4×3×2×15! = 5 \times 4 \times 3 \times 2 \times 1
n!!28!!=8×6×4×2=3848!! = 8 \times 6 \times 4 \times 2 = 384
n!!!39!!!=9×6×3=1629!!! = 9 \times 6 \times 3 = 162

More generally, n with k exclamation marks multiplies n, n−k, n−2k, … stopping once the next term would drop to 0 or below.

The classic mix-up: n!! is NOT (n!)!

This is the single most common source of errors with multifactorial notation.

  • n!!n!! (double factorial) — step straight down by 2: 9!!=9×7×5×3×1=9459!! = 9 \times 7 \times 5 \times 3 \times 1 = 945.
  • (n!)!(n!)! (factorial of a factorial) — compute n!n! first, then take its factorial: (9!)!=362880!(9!)! = 362880!, a number with more than a million digits.

The two are wildly different in size for anything beyond the smallest inputs. Whenever you see n!! in a formula, read it as "double factorial," not "factorial applied twice."

Even n vs. odd n

Because the double factorial steps down by 2, the parity of n determines which numbers appear in the chain:

  • Even n lands on 2: 8!!=8×6×4×28!! = 8 \times 6 \times 4 \times 2.
  • Odd n lands on 1: 9!!=9×7×5×3×19!! = 9 \times 7 \times 5 \times 3 \times 1.

Both follow the exact same rule (subtract 2 each step); they simply end at a different last term depending on whether n is even or odd.

Where multifactorials show up

  • Combinatorics. Double factorials count certain pairings and perfect matchings — for instance, the number of ways to pair up 2n objects is (2n1)!!(2n-1)!!.
  • Geometry. Formulas for the volume and surface area of n-dimensional spheres involve double factorials.
  • Probability. Expansions of the Gaussian (normal distribution) integral produce double-factorial terms.

Worked example — 9!! and 9!!!

Double factorial (k=2k = 2):

  1. Start at 9, step down by 2: 9, 7, 5, 3, 1.
  2. 9!!=9×7×5×3×19!! = 9 \times 7 \times 5 \times 3 \times 1
  3. 9×7=639 \times 7 = 63
  4. 63×5=31563 \times 5 = 315
  5. 315×3=945315 \times 3 = 945
  6. 945×1=945945 \times 1 = 945

So 9!! = 945.

Triple factorial (k=3k = 3):

  1. Start at 9, step down by 3: 9, 6, 3.
  2. 9!!!=9×6×39!!! = 9 \times 6 \times 3
  3. 9×6=549 \times 6 = 54
  4. 54×3=16254 \times 3 = 162

So 9!!! = 162.

Frequently asked questions

What does n!! mean?
n!! is the *double factorial*: multiply n by every second integer below it down to 1 or 2. For example 9!!=9×7×5×3×1=9459!! = 9 \times 7 \times 5 \times 3 \times 1 = 945 and 8!!=8×6×4×2=3848!! = 8 \times 6 \times 4 \times 2 = 384. It is not the same as applying the ordinary factorial twice.
Is n!! the same as (n!)!?
No — this is the single most common mix-up with this notation. (n!)!(n!)! means take n!n! first, then take the factorial of *that* number, which explodes to an astronomically larger value. n!!n!! (double factorial) instead multiplies straight down in steps of 2. For n=9n = 9: 9!!=9459!! = 945, while (9!)!=362880!(9!)! = 362880!, a number with well over a million digits.
What is a triple factorial (n!!!)?
Same idea, one more step: n!!!n!!! multiplies n downward in steps of 3. 9!!!=9×6×3=1629!!! = 9 \times 6 \times 3 = 162, and 7!!!=7×4×1=287!!! = 7 \times 4 \times 1 = 28. In general, k exclamation marks means step down by k each time.
Why do even and odd n give different-looking chains?
For the double factorial, an even n keeps multiplying even numbers down to 2 (e.g. 8!!=8×6×4×28!! = 8 \times 6 \times 4 \times 2), while an odd n multiplies odd numbers down to 1 (e.g. 9!!=9×7×5×3×19!! = 9 \times 7 \times 5 \times 3 \times 1). Both chains follow the same rule — step down by 2 — they just land on different parity.
What is 0!! or 0!!!?
By the same empty-product convention as 0! = 1, any 0 with any number of exclamation marks equals 1 — there is nothing to multiply, so the product is defined as 1.
Where is the double factorial used?
It shows up in combinatorics (counting certain pairings/matchings), in the volume formulas for n-dimensional spheres, and in probability (Gaussian integral expansions). It is a genuinely different function from the ordinary factorial, not just a stylistic variant.

Related calculators