Minecraft Enchantment Calculator
See your odds at the table. Find a better order at the anvil.
This Minecraft enchantment calculator compares enchanting-table odds and plans anvil orders for vanilla Java Edition 26.3. Choose equipment, material and effective bookshelves to explore all three slots, or select fresh, single-enchantment books to find the lowest total level cost on a fresh item. Probabilities are estimates from 60,000 sampled XP seeds, not predictions of your next roll. Default results appear below; changing inputs requires JavaScript and runs in your browser. Bedrock Edition and used-gear anvil plans are not supported.
Choose your item
Diamond Sword
Count only shelves with a clear connection to the table.
Match an in-game level requirement
Filters XP seeds for all three slots. Clear the number to remove this clue. It does not reveal your exact roll.
Enchant

The number on the right is the required player level. The list shows possibilities, not a predicted roll.
Enchanting Table Probabilities
SLOT 3Diamond Sword · 15 bookshelves · Java 26.3
Estimates from 60,000 XP seeds. Multiple enchants can occur together, so single probabilities can add up to more than 100%. About these numbers ↗
Build your next upgrade
Start with fresh gear and fresh single-enchantment books. Pick the level on each book.
Prior work penalty starts at 0. Repairing, renaming, merging duplicate enchants and already-used items are outside this planner’s scope.
Anvil Enchantment Order
Left and right slots matter. Follow the steps in order.
- Step 16 levelsLEFTDiamond SwordRIGHTLooting 3 book
→ Item from step 1 · next work penalty 1
- Step 22 levelsLEFTUnbreaking 3 bookRIGHTMending 1 book
→ Book from step 2 · next work penalty 1
- Step 37 levelsLEFTItem from step 1RIGHTBook from step 2
→ Item from step 3 · next work penalty 3
- Step 48 levelsLEFTItem from step 3RIGHTSharpness 5 book
→ Item from step 4 · next work penalty 7
Optimizes the sum of levels spent, not raw XP points. Every step must cost 39 levels or less.
How Minecraft Enchanting Works
At the enchanting table
Choose an item, material and effective bookshelf count. Select one of the three offers to explore its probability distribution. The table uses weighted draws, modified enchanting levels and compatibility rules. A high chance is still a chance, not a guaranteed result.
At the anvil
Combining books first can save levels, but every anvil operation also adds a prior work penalty. The planner compares valid combining orders and finds the lowest total level cost for your selected books. See exactly what the planner supports.
Minecraft Enchanting FAQ
Small details make a big difference when you are spending levels.
How many bookshelves do I need for level 30?
15 effective bookshelves unlock the level-30 offer in the third slot. Shelves must connect to the table correctly; simply having 15 nearby does not guarantee they are all counted.
Does a level-30 enchantment spend 30 levels?
No. The third slot requires at least 30 player levels at the maximum bookshelf setup, but spends 3 levels and 3 lapis lazuli. The first and second slots spend 1 and 2 levels respectively.
Can I get Mending from the enchanting table?
No. Mending is not in the vanilla Java 26.3 enchanting-table pool. It can be applied with an enchanted book at an anvil. Other treasure enchants also have different acquisition rules.
Why is my actual result different?
These are estimates over many possible player XP seeds. Your current seed determines one actual result. Bookshelves alone do not reveal that seed. Servers, mods, datapacks and other game versions may also change the rules.
Does this work for Bedrock Edition?
This version is specifically for vanilla Java Edition 26.3. Bedrock probabilities and costs have not been validated here, so they are not advertised as supported.
What does “Too Expensive” mean?
For the operations supported by this survival planner, an individual anvil step costing 40 or more levels is not allowed. The optimizer rejects those steps rather than suggesting an unusable plan.
Know your enchantments
All 43 enchants, their levels, conflicts and how to get them.