By Tim King · Updated
Minecraft Anvil Cost Calculator
Prior Work Penalty and Too Expensive
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the Minecraft Anvil Cost Calculator works
Enter how many times each item has been through an anvil, the enchantment cost carried by the sacrifice, and whether you are renaming. The Minecraft anvil cost calculator shows the level cost, the prior work penalty included in it and how many more anvil trips the item can take before Survival mode says Too Expensive.
Anvils let you stack enchantments that the enchanting table never offers together, such as Mending with Unbreaking III. The catch is the prior work penalty. Every trip through an anvil makes the next one cost more, and the penalty doubles each time. Plan the order badly and a diamond sword becomes impossible to improve after a handful of uses.
How the Minecraft anvil cost calculator works
The cost of one anvil operation is the sum of four parts:
- Target penalty: 2ⁿ − 1 levels, where n is how many times the item on the left has been used on an anvil.
- Sacrifice penalty: the same formula for the item or book on the right.
- Enchantment cost: what the sacrifice adds. Each enchantment costs its level times a multiplier, lower for books than for items. Enter the total here.
- Rename: 1 extra level if you change the name in the same step.
After the operation the result counts as having been used once more than whichever input had more uses. That new count sets the penalty for its next trip.
Worked examples
Example 1: a sword with 2 anvil uses takes a book with 1 use carrying 6 levels of enchantments, and you rename it. The cost is 3 + 1 + 6 + 1 = 11 levels, and the sword moves to 3 uses.
Example 2: a pickaxe with 5 uses takes a fresh book worth 8 levels. The cost is 31 + 0 + 8 = 39, the most Survival allows. The pickaxe moves to 6 uses, and its next trip will be Too Expensive.
The prior work penalty doubles
Combined penalty and levels left for enchantments under the Survival limit of 39
| Target uses | Sacrifice uses | Penalty (levels) | Levels left |
|---|---|---|---|
| 0 | 0 | 0 | 39 |
| 1 | 0 | 1 | 38 |
| 1 | 1 | 2 | 37 |
| 2 | 0 | 3 | 36 |
| 2 | 1 | 4 | 35 |
| 2 | 2 | 6 | 33 |
| 3 | 0 | 7 | 32 |
| 3 | 1 | 8 | 31 |
| 3 | 2 | 10 | 29 |
| 3 | 3 | 14 | 25 |
| 4 | 0 | 15 | 24 |
| 4 | 1 | 16 | 23 |
| 4 | 2 | 18 | 21 |
| 4 | 3 | 22 | 17 |
| 4 | 4 | 30 | 9 |
| 5 | 0 | 31 | 8 |
| 5 | 1 | 32 | 7 |
| 5 | 2 | 34 | 5 |
| 5 | 3 | 38 | 1 |
| 5 | 4 | 46 | Too Expensive |
| 5 | 5 | 62 | Too Expensive |
At 5 uses the penalty alone is 31 levels. In Survival any operation costing 40 or more levels is refused with "Too Expensive!", so after five or six uses there is no room left for enchantments. Creative mode has no such limit, which the calculator reflects when you switch the mode.
Combine books first, then the item
The best order is to merge enchanted books with each other in pairs, like a tournament bracket, and only then apply the finished book to the item. Pairing items with equal use counts keeps the penalty low, because the result only goes up by one from the larger count. Adding books to a sword one at a time instead gives it a new use each time, and the penalty climbs with every step.
For example, take four fresh books. Merge them as two pairs, giving two books with one use each, then merge those into one book with two uses. Applying it to a fresh sword leaves the sword on three uses, with a 7-level penalty for its next trip. Adding the four books to the sword one at a time leaves it on four uses and a 15-level penalty, and each step along the way cost more too.
Where the enchantment cost comes from
Each enchantment on the sacrifice costs its level multiplied by a rarity factor. Common ones such as Sharpness and Protection cost 1 per level from a book, rarer ones such as Mending 2, and very rare ones such as Silk Touch 4. Doubling applies when the sacrifice is an item rather than a book. Add up those numbers for the enchantments that will transfer and enter the total.
Tips and pitfalls
Rename in the same step. A rename costs 1 level. Do it together with another operation so it does not add a separate anvil use.
Repairing with material also adds a use. Fixing a pickaxe with diamonds raises its penalty just like combining. Mending gear never needs an anvil repair, so give it Mending early.
Books are cheaper than items. The enchantment multiplier for a book sacrifice is half that of an item, so combine onto books where you can.
Level 39 is the Survival ceiling. Every operation must cost 39 or less, not 40.
How to read the result
Anvil cost is what the anvil will ask for. Prior-work penalty shows how much of that is pure penalty. Anvil uses after this is the item's new count and the penalty it will carry next time. The last line warns how many more trips are realistic before penalty alone rules out enchanting.
FAQ
What does Too Expensive mean on an anvil?
The operation would cost 40 levels or more, which Survival mode refuses. It usually means the item has been on an anvil five or six times, so the prior work penalty alone is 31 or 63 levels.
How do you reset the prior work penalty?
You cannot in normal Survival play. The penalty stays with the item. Using a grindstone removes non-curse enchantments and also clears the penalty, but you lose the enchantments with it.
What is the cheapest order to combine enchanted books?
Merge books in equal pairs, then merge those pairs, and apply the final book to the item last. Keeping the use counts even on both sides stops the penalty from climbing faster than it needs to.
Does renaming an item add to the prior work penalty?
Yes, a rename on its own counts as an anvil use. Rename while doing another operation so you pay the extra level once and do not waste a whole use on the name.
See also: all Gaming & PC tools, Everyday Maths, Loans & Savings, Dates & Time, Health, Home & DIY, Unit Converters, Education, Science, Creative, Garden & Farm, Work & Business, Fun, Maps & GPS, DIY & Building, Cost Estimators, Sport & Clubs.
Related tools
Minecraft XP Calculator
XP needed between any two Minecraft levels, with bottle counts.
Nether Portal Calculator
Where to build the matching portal in the Nether or Overworld.
Loot Drop Calculator
Your real odds of a rare drop, and how many tries you need.
Pokémon Type Calculator
Weaknesses, resistances and immunities for any single or dual type.
Dice Roller
Roll D6, D20 or any custom die with a fair random generator.