Anvil calculator
Find the cheapest order for combining ready-made books and check the anvil limit.
Your item
Choose the gear that should receive the enchanted books.

Enchanted books
Select an enchantment, then set the chosen book level.
Combination tree
The cheapest order is rebuilt after every change.
Item
Book
+6
Book
Book
+2
+7
Book
+8
Diamond SwordThe calculation uses anvil_cost values from the Java 26.2 vanilla datapack and item prior-work penalties.
Step-by-step order
Keep the base item on the left and place the donor book on the right.
Diamond swordBase item
BookLooting III
Diamond swordLooting III
BookUnbreaking III
BookMending I
Combined bookUnbreaking III, Mending I
Diamond swordBase item
BookUnbreaking III, Mending I
Diamond swordLooting III, Unbreaking III, Mending I
Diamond swordBase item
BookSharpness V
Diamond swordLooting III, Unbreaking III, Mending I, Sharpness VAnvil costs and the 39-level limit
Java 26.2. Selected enchantments represent separate fresh books at the required levels. The item's prior work increases costs, and a 40-level combination is blocked in Survival. Material repairs and existing item enchantments are outside this calculation.
Too Expensive: causes and what you can fixFrequently asked questions
Why does the anvil say Too Expensive?
In Java Survival, a combination costing 40 levels or more is blocked. The limit applies to each operation, not the plan total. Having 100 levels does not remove it; renaming alone without repairs or enchantments is an exception.
How does the prior-work penalty grow?
A new item has a penalty of 0. Combining sets the new penalty to 2 × the larger input penalty + 1: 0, 1, 3, 7, 15, 31, 63. This reflects the depth of earlier combinations, not the total number of books used. Renaming alone does not increase it.
Should I combine every book into one first?
Not necessarily. Every transfer charges for the enchantments on the right-hand book, so both its contents and the two input penalties matter. The cheapest plan can mix individual books with small groups. The sum of level costs is not a number of XP points.
Can I reset the penalty and keep my enchantments?
A grindstone resets the penalty but removes ordinary enchantments and retains curses. Mending repairs durability with XP without increasing the penalty, but does not reset an existing one. If new enchantments exceed the limit, compare the same build on a fresh item.
Which item and book states does the calculation support?
The calculation uses Java 26.2 rules: one fresh book per selected enchantment, already at the desired level, with no prior work. The item can have a prior-work penalty. Material repairs, existing item enchantments, premade multi-enchantment books, and Bedrock are not modeled, so the displayed price is not an exact quote for those cases.
