Double Factorial Calculator
Multiply n by every second integer down to 1 or 2 to get the double factorial, with parity shown.
What it does
The double factorial of n, written n with two exclamation marks, multiplies n by every second integer below it. For 8 the chain is 8 times 6 times 4 times 2, which is 384. For 7 it is 7 times 5 times 3 times 1, which is 105. The two cases form separate even and odd chains.
The notation is read as n double factorial, not as a factorial applied twice. Applying the ordinary factorial twice gives a completely different and much larger number, so the double marks are a distinct symbol.
Double factorials appear in formulas for volumes of spheres in even and odd dimensions, in counts of perfect matchings, and in the evaluation of certain integrals. They also simplify the expression of half integer factorials.
This page computes the product from n downward in steps of two, using exact integer arithmetic. It also reports the value at n minus one, which belongs to the opposite parity chain, and labels which chain was used.
The input limit is 200. The result can be very large, but the tool prints every digit without scientific notation.
How to use
- Enter a whole number n from 0 to 200.
- Read n double factorial in the main result box.
- Check the parity label to see which chain was used.
- The value beside it comes from the opposite parity chain at n minus one.
- The default n = 8 reproduces the worked example.
- Try n = 7 to confirm the odd chain result 105.
Formula
- n
- The starting integer.
- n!!
- The double factorial of n.
- n - 2
- The next entry in the chain, two lower than n.
For even n the product ends at 2, and for odd n it ends at 1. The convention 0!! = 1 makes the recurrence work at the bottom of the even chain. Double factorials relate to ordinary factorials through 2k double factorial equals 2 to the k times k factorial, while the odd chain connects to binomial coefficients.
Worked example
Example: 8 double factorial
The page opens with n = 8.
- Check the parity: 8 is even, so the chain ends at 2.
- Start the product at 8.
- Multiply by 6 to get 48.
- Multiply by 4 to get 192.
- Multiply by 2 to get 384.
- The tool reports 384, parity Even, and the value at 7 of 105.
- Check the odd chain separately: 7 x 5 x 3 x 1 = 105.
Reference table
| n | n!! | Chain | n - 1 value |
|---|---|---|---|
| 0 | 1 | Even | n/a |
| 1 | 1 | Odd | 1 |
| 4 | 8 | Even | 3 |
| 5 | 15 | Odd | 8 |
| 7 | 105 | Odd | 48 |
| 8 | 384 | Even | 105 |
| 9 | 945 | Odd | 384 |
Limits
- Inputs above 200 are rejected to keep the printed integer manageable.
- Even and odd chains are separate and do not divide into each other.
- The value at n minus one comes from the other parity chain.
- The tool computes the product, not any related integral or volume.
Common mistakes
- Reading n!! as the factorial of n factorial.
- Ending the even chain at 1 instead of 2.
- Taking 0!! to be zero instead of one.
- Assuming n!! divides n! for every n without checking.
- Mixing an even chain value with an odd chain index.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is 8!!?
8 x 6 x 4 x 2 = 384.
What is 7!!?
7 x 5 x 3 x 1 = 105.
What is 0!!?
0!! = 1 by convention.
Questions
Is n!! the same as (n!)!?
No. The double marks are a separate operation with a step of two.
What is 0!!?
It is 1, which makes the recurrence consistent at the start of the even chain.
How are even and odd chains related?
They are independent products ending at 2 and 1 respectively.
Where are double factorials used?
In sphere volumes, matchings and integrals with half integer powers.
Are values exact?
Yes. Only integer multiplication is used.
What is the largest input?
Two hundred.