DevCalc Logo
DevCalc

Work through the method

Permutation & Combination Calculator

Calculate permutations (nPr) and combinations (nCr) instantly. Use our free calculator for probability, statistics, mathematics, competitive exams, and data analysis.

Calculate nPr, nCr, factorial values, and solve probability and combinatorics problems instantly.

Permutation & Combination Formula

nPr = n! / (n-r)! , nCr = n! / [r!(n-r)!]

Permutation calculates arrangements where order matters, while combination calculates selections where order does not matter.

Example Calculation

Input: n = 5, r = 2

Output: nPr = 20, nCr = 10

Common Uses

  • • Probability
  • • Statistics
  • • Competitive Exams
  • • Mathematics
  • • Data Analysis
  • • Research
  • • Combinatorics
  • • Education

How the Permutation & Combination Calculator Works

1

Enter Total Items (n)

Enter the total number of available items.

2

Enter Selected Items (r)

Enter how many items are chosen.

3

Calculate nPr and nCr

The calculator applies permutation and combination formulas.

4

View Results

See permutation, combination, and factorial values.

Questions about this calculator

Permutation is an arrangement of objects where order matters.

Combination is a selection of objects where order does not matter.

nPr calculates the number of possible arrangements.

nCr calculates the number of possible selections.

They are widely used in probability, statistics, mathematics, exams, and data science.

Permutation or combination: which one should you use?

Use a permutation when the order of the selected items matters. Use a combination when only the group matters. Choosing a president and secretary from a class is a permutation because the roles are different; choosing two class representatives without roles is a combination.

Formulas used

For non-negative whole numbers where r is not greater than n, the calculator uses nPr = n! / (n-r)! and nCr = n! / (r!(n-r)!). The factorial n! means multiplying every positive integer from n down to 1, while 0! equals 1.

Worked example

If n = 5 and r = 2, there are 5P2 = 5! / 3! = 20 ordered arrangements. There are 5C2 = 5! / (2! × 3!) = 10 unordered selections. Each pair appears twice among the permutations because its two members can switch order.

Input limits and interpretation

Enter whole-number values with 0 ≤ r ≤ n. Factorials grow extremely quickly, so very large inputs can exceed JavaScript's precise numeric range. For classroom, exam, and everyday probability questions, verify whether repeated items are allowed because these formulas assume selection without replacement.

Learn more

Latest helpful articles

Recent guides and verified updates selected for this calculator.

View all articles

Transportation

Inland Waterways Development: Traffic Growth, Safety Milestones & New River Lighthouses on NW-2

Inland waterways in India are expanding rapidly, with freight traffic growing from 2.9 crore metric tonnes in 2014-15 to 21.8 crore metric tonnes in 2025-26 at a CAGR of 20.13%. National Waterway-2 on the Brahmaputra River now features India's first river-based lighthouses for 24/7 navigation. Digital platforms provide real-time depth and weather data, enhancing navigation safety across 32 operational waterways spanning 20,187 km.

3 min read

Environment

India's Ramsar Site Tally Reaches 103 with New Additions

India's Ramsar site tally reaches 103 with new wetland additions Sukhna Lake in Chandigarh and Sauj Jheel in Uttar Pradesh. The Ministry of Environment, Forest and Climate Change announced the milestone on October 15, 2026, strengthening the nation's commitment to wetland conservation and biodiversity.

2 min read

Governance

Special Campaign 6: Progress, citizen-centric initiatives and compliance deadline (31 Oct 2026)

Special Campaign 6 entered its implementation phase on 2 October 2026 and runs until 31 October 2026. The third review meeting chaired by DARPG Secretary saw 600+ officers from 84 ministries review progress. Key citizen-centric initiatives include India Post's DigiPost, e-waste collection drives, waste-to-prosperity art installations, and dedicated one-day campaigns across ministries. Innovations span digital services e-waste management record disposal and community participation. The campaign is promoted widely through social media and PIB releases.

3 min read