CALCULATOR · ORDER
Minecraft Enchantment Order Calculator
Same Java Edition planner as the homepage, focused on merge order. Enter the item and books you actually have. Use the printed tree when every step fits survival; if a step is Too Expensive, start from a fresh item or drop a book instead of following a rejected cheaper total.
Enchantment order calculator
Up to 8 books · Level cost · Survival capPick the gear you want to enchant. Books you add below will be merged onto it in the cheapest order we can find.
Worked example: sword loadout
Inputs: Fresh sword (prior-work 0); Sharpness V book; Looting III book; Unbreaking III book; Mending book. Least-XP mode. The left-to-right apply costs 27 levels. The planner's merge tree costs 23 levels and still produces Sharpness V, Looting III, Unbreaking III, and Mending.
Naive order (left to right)
- Combine Sword with Book (Sharpness V) 5 levels
- Combine Sword (Sharpness V), prior-work 1 with Book (Looting III) 7 levels
- Combine Sword (Sharpness V, Looting III), prior-work 2 with Book (Unbreaking III) 6 levels
- Combine Sword (Sharpness V, Looting III, Unbreaking III), prior-work 3 with Book (Mending I) 9 levels
Total: 27 levels
Planner order
- Combine Sword with Book (Unbreaking III) 3 levels
- Combine Book (Looting III) with Book (Mending I) 2 levels
- Combine Sword (Unbreaking III), prior-work 1 with Book (Looting III, Mending I), prior-work 1 10 levels
- Combine Sword (Unbreaking III, Looting III, Mending I), prior-work 2 with Book (Sharpness V) 8 levels
Total: 23 levels · fits survival
Failure case: invalid order
Inputs: fresh sword, Sharpness V book, Smite V book. The planner returns Sharpness conflicts with Smite. Choose one; this planner preserves every requested enchantment. and does not print steps. The two damage enchantments cannot remain on the same sword, so this planner does not silently discard either one.
Use the anvil calculator when you want a single combine preview, or the XP cost calculator when the order is legal but a step hits the 40-level cap.
FAQ
- Why does enchantment order change XP cost?
- Each anvil use raises prior-work on the result (penalty 2^n - 1). Applying four books one-by-one onto the sword stacks that penalty on the item. Pairing can reduce tree depth, but the final item inherits the larger input prior-work count plus one. Slot direction also changes the book fee.
- What counts as an invalid order?
- Any set that includes a conflict, such as Sharpness with Smite, or an enchantment the item cannot receive. The planner refuses those bundles before it searches merge trees, so you do not spend levels on a combine that cannot preserve every requested enchantment.
- Does this try every legal order?
- For up to eight single-enchantment book rows it searches ordered merge trees, including both directions of each book pair. It uses all rows and maximizes duplicate levels before comparing survival feasibility, total levels and final prior-work. More than eight rows are rejected.
- Can I start from an already-enchanted item or a multi-enchant book?
- Not as one input. The live planner starts from an unenchanted target plus prior-work, and each row is one one-enchantment book. If a book in your inventory already holds several enchantments, that is one sacrifice in-game; this UI cannot represent that bundle yet.
- Is this Java Edition or Bedrock?
- Java 26.3 anvil planning. Confirm a valuable combine in your own world if you use Bedrock, mods, datapacks, or snapshots.