Prime Mover Game Tools

Enchantment order calculator

Game data: Minecraft Java Edition 26.3

Pick an item and the enchanted books you have. The calculator tries every order and shows the cheapest, step by step.

Books to add (one book per enchantment, at the level you want)

Why the order matters

Every time something goes through an anvil, it gets a prior work penalty that is added to the cost of its next anvil job. The penalty roughly doubles each time: 0, 1, 3, 7, 15, 31 levels after 0, 1, 2, 3, 4 and 5 uses. Adding books one at a time to the same item makes the penalty climb fast. Combining books with each other first, in pairs, keeps every piece's penalty low.

The cost of one anvil job

Cost = penalty of the left item + penalty of the right item + (level × book multiplier) for each enchantment on the right-hand item.

The left slot is the target, which you keep; the right slot is the sacrifice, used up. Only the sacrifice's enchantments are charged for. Each enchantment has a multiplier: 1 for common ones like Sharpness, Efficiency, Protection and Power; 2 for Fortune, Looting, Mending and Fire Aspect; 4 for rare ones like Silk Touch, Thorns, Infinity and Soul Speed. So it's usually cheaper to put an expensive book in the left slot, where it costs nothing, and the cheap one in the right.

In Survival, Java Edition refuses any job that costs 40 levels or more and shows "Too Expensive!". The calculator never picks an order with a step that big. If every order has one, it says so.

Worked example: a diamond pickaxe

A new pickaxe and four books: Efficiency V, Unbreaking III, Fortune III and Mending. Putting the books on one by one, in that order, costs 5 + 4 + 9 + 9 = 27 levels. The cheapest order costs 23 levels:

  1. Pickaxe + Fortune III: 0 + 0 + 3 × 2 = 6 levels.
  2. Unbreaking III book + Mending book: 0 + 0 + 1 × 2 = 2 levels. (Mending goes on the right: it is cheaper there than Unbreaking III at 3 × 1.)
  3. Pickaxe + the Unbreaking/Mending book: penalties 1 + 1, plus 3 + 2 for the enchantments = 7 levels.
  4. Pickaxe + Efficiency V: penalty 3 + 0, plus 5 × 1 = 8 levels.

The finished pickaxe has been through the anvil 3 times, so any later repair or rename starts at 7 levels.

Levels are not all equal

An anvil charges levels, but higher levels hold more experience. Spending 8 levels when you are at level 8 uses 112 XP points; spending 8 levels from level 38 uses 1,148. Pay for each step soon after you reach its cost, rather than saving up to level 30 and spending from the top. The result shows the points each step takes if you have exactly that many levels. The XP calculator works out the rest.

What it assumes

Sources: anvil cost rules, enchantment multipliers, maximum levels and incompatibilities as listed in the Minecraft Wiki "Anvil mechanics" and "Enchanting" articles for Java Edition, checked 21 November 2026 (Java Edition 26.3).