# Factorial > How large is a factorial? Multiply down from any whole number, exactly up to 1000 and as an estimate beyond. Calculate n! or the double factorial n!! exactly, see how many digits the answer has, and get an estimate for numbers beyond 1000 up to one million. - Page: https://how.box/factorial/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/factorial/?n={n}&kind={kind} - `n` (whole number 0 to 1e6): Nonnegative integer. Example: `10`. - `kind` (factorial or double): Product. Example: `factorial`. Example answer: https://how.box/factorial/?n=10&kind=factorial A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `factorial_calculate`: Factorial: Exact through 1000; larger products use Stirling’s approximation. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"factorial_calculate","arguments":{"n":10,"kind":"factorial"}}}` - GET: https://how.box/mcp/run/factorial_calculate?n=10&kind=factorial ## How it works The factorial n! multiplies all positive integers through n. By convention 0! = 1. A double factorial n!! multiplies every second integer: 7!! = 7 × 5 × 3 × 1 = 105. Products through 1000 are exact. For larger inputs, the scientific estimate uses Stirling’s formula with correction terms, giving eight significant digits at the first estimated value, 1001!. A double factorial is every second factor: (2k)!! = 2ᵏk!, and (2k−1)!! = (2k)!/(2ᵏk!). For example, 10! = 3628800 and has seven digits. The gamma function extends the factorial through Γ(n+1) = n!, but this tool accepts only nonnegative integers. Approximate digit counts can be off by one near a power of ten. ## FAQ **Why is 0! equal to 1?** It is the empty product and keeps the recurrence n! = n × (n−1)! consistent at n = 1. **What is a double factorial?** It multiplies n, n−2, n−4 and so on, ending at 1 or 2. It is not (n!)!. **Are large exact products rounded?** No. Products through 1000 are shown in full, without rounding. Longer headlines use a rounded scientific form, with the full product below. **How accurate is Stirling’s approximation?** The estimate includes the 1/(12n) − 1/(360n³) correction to the logarithm of n!. This gives eight significant digits at 1001!, unlike the leading term alone. Double factorials use ratios of the corrected estimates. **Can I enter a fractional or negative value?** No. Gamma extends factorials beyond integers, but that extension is outside this calculator. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)