Skip to content
Language:en

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.

Books to apply
    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

      1. Pick the item you want to enchant.
      2. Tick the enchanted books you have and set their level.
      3. Follow the steps in order: combine the two sides shown in the anvil, left then right.
      4. 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.

      Frequently asked questions

      What does “Too Expensive!” mean?
      In survival, an anvil refuses any operation costing 40 levels or more. A bad order quickly reaches that limit because of the repair penalty; the calculator only proposes orders where every step stays under 40 levels.
      Why combine books together before the item?
      Merging books in pairs keeps the number of anvil uses of each side low, so the penalty grows slowly. Adding books one by one to the item makes its penalty double at every step.
      Should Mending go on first or last?
      It depends on the other books, which is exactly what the calculator works out. As a rule, expensive enchantments should be sacrificed early, when the penalties are still low.
      Does it work with an item that is already enchanted?
      The calculator assumes a new item and new books. An item that has already been through an anvil has a higher penalty, so the totals would be higher.
      Does the side of the anvil matter?
      Yes. The item on the left keeps its enchantments and you pay for the enchantments of the item on the right, weighted by their multiplier. Putting the cheaper side on the right lowers the cost, which is why every step says which side goes where.