Factorial Calculator

Enter a whole number to calculate its factorial or one of three sequence sums without rounding.

Whole number n

Exact result

120

Read explanation below

Contents

How the factorial calculator works

Four colored counters branching into several different arrangements

Choose factorial or one of the three sum modes, then enter a whole number from 0 to 5,000. The calculator returns an exact integer rather than scientific notation or a rounded estimate.

Factorial multiplies every integer from 1 through n

The exclamation mark is part of the notation: n!=โˆk=1nkn!=\prod_{k=1}^{n}k. By definition, 0!=10!=1.

Factorials count arrangements. If five distinct books can occupy five shelf positions, there are 5! possible orders.

Small values make useful checks

5! = 120. Multiplying 1 ร— 2 ร— 3 ร— 4 ร— 5 gives the default result and the number of orders for five distinct objects.

10! = 3,628,800. The jump from 9! to 10! is a factor of 10, showing how quickly factorials grow.

0! = 1. This convention keeps permutation and combination formulas valid when a group contains no selected elements.

The menu also calculates three sequence sums

The natural-number mode uses โˆ‘k=1nk=n(n+1)2\sum_{k=1}^{n}k=\frac{n(n+1)}{2}. For n = 10, the answer is 55.

The even mode adds 2 + 4 + โ€ฆ up to n, while the odd mode adds 1 + 3 + โ€ฆ up to n. With n = 10, those results are 30 and 25.

Only non-negative whole numbers are accepted

The elementary factorial is not defined here for negative numbers or fractions. Values above 5,000 are blocked so the page remains responsive even though the arithmetic uses exact integers.

A large exact result can contain thousands of digits. Copy it when you need every digit; for estimates or asymptotic work, a logarithm or Stirlingโ€™s formula is often easier to handle.

Factorial questions

The notation is short, but zero and large values often need a little context.

What does n! mean?

It means the product of every positive integer from 1 through n.

Why is 0! equal to 1?

The value is defined as 1 so counting formulas and the factorial recurrence remain consistent at zero.

Can I enter a decimal number?

No. This calculator implements the elementary factorial and sequence sums for whole numbers only.

Is the large result rounded?

No. The calculator uses integer arithmetic and displays every digit for inputs up to 5,000.

What is the difference between factorial and a sum?

A factorial multiplies the integers, while the other three modes add selected integers up to n.

Similar calculators

You may find the following calculators on the same topic useful:

Share on social media

If you liked it, please share the calculator on your social media platforms. It`s easy for you and beneficial for the project`s promotion. Thank you!