How anvil costs work
Each anvil job costs the prior work penalty of both items plus the cost of every enchantment on the item in the right-hand slot. The penalty starts at 0 and goes 1, 3, 7, 15, 31 levels as an item is used on an anvil again and again (2uses โ 1), and a combined item takes the higher count of the two plus one. An enchantment costs its level times a multiplier: 1 for cheap ones like Sharpness, Efficiency, Protection and Unbreaking, up to 4 for Thorns, Silk Touch, Infinity, Soul Speed and Swift Sneak from a book (items cost double). In Survival, any job of 40 levels or more shows Too Expensive!
Why order matters
Adding books to an item one by one doubles its penalty each time, so the fifth or sixth book becomes impossible. Pairing books first keeps every item's use count low: four books can go on in two rounds instead of four. The calculator tries every way of pairing the books and keeps the cheapest that never reaches 40 levels in one step. Put the books in the right slot exactly as each step shows: the left item is the one that stays.
It assumes your books came from the enchanting table, trading or loot and have never been on an anvil, and that your item has no enchantments yet. Fresh books on a clean item cost the same in Java and Bedrock, except Impaling, which is cheaper in Bedrock. Repairing or renaming in the same step adds 2 or 1 levels.
How anvil costs work
Each anvil job costs the prior work penalty of both items plus the cost of every enchantment on the item in the right-hand slot. The penalty starts at 0 and goes 1, 3, 7, 15, 31 levels as an item is used on an anvil again and again, which is 2 to the power of the uses, minus 1. A combined item takes the higher count of the two plus one.
An enchantment costs its level times a multiplier. The multiplier is 1 for cheap ones such as Sharpness, Efficiency, Protection and Unbreaking, up to 4 for Thorns, Silk Touch, Infinity, Soul Speed and Swift Sneak from a book. Items cost double. In Survival, any job of 40 levels or more shows Too Expensive!
Why adding books one by one fails
When you add books to an item one at a time, its penalty doubles each time. The table shows a diamond tool getting a book that costs 4 levels at each step. By the sixth job the cost is 35 levels, and the seventh would cost 67, which is Too Expensive.
| Job | Penalty on the item | Level cost with a 4-level book | Result |
|---|---|---|---|
| 1 | 0 | 4 | OK |
| 2 | 1 | 5 | OK |
| 3 | 3 | 7 | OK |
| 4 | 7 | 11 | OK |
| 5 | 15 | 19 | OK |
| 6 | 31 | 35 | OK |
| 7 | 63 | 67 | Too Expensive! |
The penalty is the real problem. The first books are cheap, and the last ones are impossible.
Pairing books first
Pairing books before applying them keeps every item's use count low. Four books can go on in two rounds instead of four. Combine two books, combine two others, then combine the pairs and apply the result to the item. The penalty on a combined book grows by one use per round, not per book.
The cheapest order in total levels is not always the best. A longer order that never reaches 40 levels in one step is the one you can actually carry out.
What the calculator does
The calculator tries every way of pairing the books and keeps the cheapest that never reaches 40 levels in one step. It shows each step with the items in the left and right slots. The left item is the one that stays, and the right item is the one that is consumed.
It assumes your books came from the enchanting table, trading or loot and have never been on an anvil, and that your item has no enchantments yet.
Multipliers and expensive enchantments
Enchantments with a high multiplier, such as Thorns, Silk Touch and Infinity, are expensive, especially from a book. Put the expensive ones in the right-hand slot as few times as possible. A costly enchantment on the right slot of every step adds up quickly.
If an item must carry a costly enchantment, apply it early on a low-penalty item, or combine it with other books in a pair where it is paid for once.
Renaming and repairing
Renaming on its own costs 1 level plus the item's current penalty but does not raise the penalty. Renaming together with another anvil job counts as one more use. Repairing or renaming in the same step adds 2 or 1 levels. Do not rename or repair between enchantments, since each use raises the penalty.
Do the renaming last, once all enchantments are on.
Fixing Too Expensive
Once a single job costs 40 levels or more, it cannot be done in Survival. Plan the order before you start, combine books together first, and avoid extra anvil use. If an item is already too high, you may need to use a grindstone, which removes enchantments and resets the penalty, then start again.
A grindstone removes enchantments but gives some experience back. Keep a copy of valuable books before you grind.
Java and Bedrock
Fresh books on a clean item cost the same in Java and Bedrock, except Impaling, which is cheaper in Bedrock. If a cost looks off, check that you are using the right edition and that each item's history matches what you entered.
Costs in levels depend on the order and the number of uses, so keep a note of each item's history.
Planning your gear
Decide which enchantments you want, gather books for each, and enter them in the calculator. Make the items in a safe place with lots of levels, since the total cost across steps can be large. Combine the books in the order the calculator shows, and check each step before you commit.
For levels, see the XP calculator. For storage of books, see the stack calculator.
Gathering books
Enchanting tables, villager trades and loot all give books. Trading is the most controllable, because you can pick the enchantment and level. Check prices and compare them, and keep spare books for the next item. A book that has never been on an anvil is the cheapest to use.
Keep your books in a chest labelled by enchantment so that you can find the right one when the calculator asks for it.
More questions people ask
What is the best enchantment order in Minecraft?
Combine books with each other first, putting the most expensive enchantments in the right-hand slot as few times as possible, then add the combined book to the item. This calculator works out the exact order.
How do I fix "Too Expensive!" on an anvil?
Once a single job costs 40 levels or more it can't be done in Survival. Plan the order before you start, combine books together first, and don't rename or repair an item between enchantments.
Does renaming an item increase its anvil cost?
Renaming on its own costs 1 level plus the item's current penalty but doesn't raise the penalty. Renaming together with another anvil job counts as one more use.
What is the prior work penalty?
It starts at 0 and goes 1, 3, 7, 15, 31 as an item is used on an anvil again and again.
Worked examples on this page were calculated with the same formulas as the calculator above. Written and last reviewed by Shaun Longbottom, November 2026.
Frequently asked questions
What is the best enchantment order in Minecraft?
Combine books with each other first, putting the most expensive enchantments in the right-hand slot as few times as possible, then add the combined book to the item. This calculator works out the exact order.
How do I fix "Too Expensive!" on an anvil?
Once a single job costs 40 levels or more it can't be done in Survival. Plan the order before you start, combine books together first, and don't rename or repair an item between enchantments, since each anvil use raises its penalty.
Does renaming an item increase its anvil cost?
Renaming on its own costs 1 level plus the item's current penalty but doesn't raise the penalty. Renaming together with another anvil job counts as one more use.
Was this calculator helpful?