Skip to main content
Calkulon
Back to Guides
6 min read4 Steps

How to Calculate Permutations with Replacement: Step-by-Step Guide

Learn to calculate permutations with replacement (nʳ) by hand! Understand the formula, work through examples, and avoid common mistakes.

Skip the math — use the calculator

Step-by-Step Instructions

1

Understand the Problem and Identify 'n' and 'r'

First, determine if your problem involves permutations (order matters) with replacement (items can be reused). Then, carefully identify 'n' (the total number of distinct items you can choose from) and 'r' (the number of items you are choosing or arranging).

2

Apply the Permutations with Replacement Formula

Once you have your 'n' and 'r' values, plug them into the formula for permutations with replacement: nʳ. This means 'n' raised to the power of 'r'.

3

Perform the Exponent Calculation

Now, manually calculate 'n' multiplied by itself 'r' times. For example, if you have 10⁴, you would calculate 10 * 10 * 10 * 10. Take your time with the multiplication to avoid errors.

4

Interpret Your Final Result

The number you've calculated is the total number of unique arrangements or sequences possible for your specific problem, given that replacement is allowed and order matters. This is your final answer!

Hello there, aspiring mathematician! Are you ready to dive into the fascinating world of permutations? Specifically, we're going to explore "permutations with replacement," a super useful concept when you need to figure out how many different ways you can arrange items where you can pick the same item more than once. Think about setting a PIN for your phone, rolling a die multiple times, or choosing letters for a password – these are all examples where replacement is allowed, and the order matters!

This guide will walk you through the calculation step-by-step, explain the simple formula, provide a clear example, and even highlight common mistakes to help you master this concept. Let's get started!

What Are Permutations with Replacement?

Imagine you have a set of items, and you want to pick a certain number of them and arrange them in order. "With replacement" means that after you pick an item, you put it back into the set, so it can be picked again. The order in which you pick the items also matters.

For example, if you have the letters A, B, C, and you want to choose 2 letters with replacement and arrange them, possibilities include AA, AB, AC, BA, BB, BC, CA, CB, CC. Notice how 'AA' is possible because 'A' was replaced after the first pick, and 'AB' is different from 'BA' because order matters.

Prerequisites

Before we jump into the formula, make sure you're comfortable with:

  • Basic Multiplication: You'll be multiplying numbers.
  • Exponents: Understanding how x^y works (x multiplied by itself y times). For example, 2^3 = 2 * 2 * 2 = 8.

The Formula for Permutations with Replacement

The formula for calculating permutations with replacement is wonderfully straightforward:

Let's break down what 'n' and 'r' represent:

  • n (Total Number of Items): This is the total number of distinct items you have to choose from. In our letter example, n = 3 (A, B, C). If you're picking digits for a PIN, n = 10 (0-9).
  • r (Number of Items to Choose/Arrange): This is how many items you are picking or arranging in sequence. In our letter example, r = 2. For a 4-digit PIN, r = 4.

The formula simply means you multiply 'n' by itself 'r' times.

Step-by-Step Calculation: A Worked Example

Let's walk through a real-world example to solidify your understanding.

Scenario: You're setting a 4-digit security code for your bike lock. Each digit can be any number from 0 to 9, and digits can repeat. How many possible unique 4-digit codes are there?

Step 1: Understand the Concept and Identify 'n' and 'r'

First, let's confirm this is a permutation with replacement where order matters.

  • Does order matter? Yes, '1234' is different from '4321'. So, it's a permutation.
  • Is replacement allowed? Yes, digits can repeat (e.g., '1111' is a valid code). So, it's with replacement.

Now, let's identify our 'n' and 'r':

  • n (Total number of items to choose from): The digits available are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. That's 10 distinct digits. So, n = 10.
  • r (Number of items to choose/arrange): You are choosing a 4-digit code. So, r = 4.

Step 2: Apply the Formula

Now that we have 'n' and 'r', we plug them into our formula:

nʳ = 10⁴

Step 3: Perform the Calculation Manually

This step involves calculating 10 raised to the power of 4. 10⁴ = 10 * 10 * 10 * 10

Let's multiply it out:

  • 10 * 10 = 100
  • 100 * 10 = 1,000
  • 1,000 * 10 = 10,000

So, 10⁴ = 10,000.

Step 4: Interpret Your Result

There are 10,000 possible unique 4-digit security codes for your bike lock when digits can repeat. That's a lot of possibilities!

Permutations With vs. Without Replacement: A Quick Comparison

It's easy to confuse permutations with replacement (nʳ) with permutations without replacement (nPr or P(n,r)). Let's use our bike lock example to see the difference.

If digits could not repeat for your 4-digit code (e.g., '1234' is okay, but '1123' is not), the formula would be for permutations without replacement:

P(n,r) = n! / (n-r)!

Using n=10 and r=4: P(10,4) = 10! / (10-4)! P(10,4) = 10! / 6! P(10,4) = (10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1) / (6 * 5 * 4 * 3 * 2 * 1) P(10,4) = 10 * 9 * 8 * 7 P(10,4) = 90 * 56 P(10,4) = 5,040

Notice the huge difference! 10,000 possibilities with replacement versus only 5,040 without. This highlights why understanding whether replacement is allowed is crucial.

Common Pitfalls to Avoid

  1. Confusing with Combinations: Remember, for permutations, order matters. If order didn't matter (e.g., picking 3 fruits for a smoothie, where apple, banana, cherry is the same as cherry, apple, banana), you'd be looking at combinations, which have a different formula.
  2. Confusing with Permutations Without Replacement: This is the most common mistake! Always ask yourself: "Can I pick the same item again?" If yes, use nʳ. If no, use P(n,r).
  3. Incorrectly Identifying 'n' and 'r': Double-check what 'n' (total items) and 'r' (items chosen) truly are in your problem. For example, if you're choosing from letters A-Z, n=26. If you're picking a 5-character password, r=5.
  4. Calculation Errors: Especially with larger numbers, it's easy to make a multiplication mistake when calculating exponents by hand. Take your time!

When to Use a Calculator

While calculating nʳ by hand is great for understanding, for larger values of 'n' and 'r', it can become tedious and prone to error.

  • Large 'n' or 'r': If you need to calculate 26¹⁰ (e.g., a 10-character password using all letters), doing this by hand is impractical.
  • Speed and Accuracy: In exams, professional settings, or when you need quick, guaranteed accurate results, a calculator is your best friend. Most scientific calculators have an x^y or y^x button, making this calculation a breeze.

Conclusion

You've successfully learned how to calculate permutations with replacement! This powerful tool helps you understand the vast number of possibilities in scenarios where items can be reused and order is important. By following the simple nʳ formula and carefully identifying 'n' and 'r', you can confidently tackle these problems. Keep practicing, and you'll be a permutation pro in no time!

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 Calkulon