Enchantment order calculator for the anvil
The cheapest anvil order to combine enchanted books on a sword, armour, tool, bow or trident.
Unofficial site. Not approved by or associated with Mojang or Microsoft. Minecraft is a trademark of Mojang Synergies AB.
- Total cost
- —
- Most expensive step
- —
- Anvil uses
- —
- Final repair penalty
- —
Anvil steps
Runs entirely in your browser. Your files never leave your device.
About this tool
Putting Sharpness, Looting, Unbreaking and Mending on the same sword can cost a few dozen levels or end with “Too Expensive!”, depending only on the order of the anvil steps. Each time an item or a book goes through the anvil its repair penalty doubles, and the enchantments of the sacrificed side are added to the price.
Choose the item, tick the books you have and their levels: the calculator tests every possible combination and gives the cheapest sequence, step by step, with the level cost of each. Conflicting enchantments such as Sharpness and Smite, or Mending and Infinity, are greyed out. Turn off the survival limit if you play in creative mode.
How it works
- Pick the item you want to enchant.
- Tick the enchanted books you have and set their level.
- Follow the steps in order: combine the two sides shown in the anvil, left then right.
- Make sure you have at least the “most expensive step” in levels before starting.
Cost of a step = sum of (level × multiplier) of the right-hand side’s enchantments + repair penalty of both sides, where the penalty is 2^n − 1 after n uses. The calculator uses the book multipliers of Java Edition; Bedrock Edition uses nearly identical rules, so the order remains the best one there too.
Worked example
A diamond sword with Sharpness V, Looting III, Unbreaking III, Mending and Sweeping Edge III, all from fresh books. The calculator finds this order: 1. sword + Looting III, 6 levels; 2. Sweeping Edge III + Unbreaking III, 3 levels; 3. sword + the book from step 2, 11 levels; 4. Sharpness V + Mending, 2 levels; 5. sword + the book from step 4, 11 levels.
Total: 33 levels, and no step costs more than 11. Adding the same books one by one to the sword costs 48 levels, with a last step at 21, because the sword’s penalty doubles at every pass. With a few more books, that naive order is what ends in “Too Expensive!”.
Good to know
- Rename the item during the very last step if you want a custom name: it adds 1 level to that step without adding another anvil use.
- Repairing on an anvil with materials also counts as a use and doubles the penalty. Once the item has Mending, repair it with experience instead.
- Librarian villagers sell books at their maximum level. Buying Sharpness V directly avoids merging two Sharpness IV books, which costs levels and an extra penalty step.
- A cost shown in red simply means you lack levels; “Too Expensive!” is the 40-level cap of survival mode.