Ever wondered why your anvil says "Too Expensive!" when you try to add that final enchantment? Understanding how the Minecraft anvil works is crucial for creating perfectly enchanted gear. This guide explains the hidden mechanics behind anvil costs, work penalties, and how to optimize your enchanting strategy.
The Minecraft anvil system uses a complex cost calculation that includes base enchantment costs and an exponentially growing "work penalty" (also called "prior work penalty"). Without proper planning, you'll quickly hit the 39-level cost limit and be unable to add more enchantments. Our enchantment calculator solves this by finding the optimal order to minimize costs. Ready to put this knowledge into practice? Browse our best enchantment builds for proven combinations.
Quick answer: prior work penalty is Minecraft's hidden anvil-use counter. Fresh items and fresh books start at 0. Each time an item is worked in an anvil, future operations add 2uses - 1 extra levels: 0, 1, 3, 7, 15, then 31. That growth is why a poorly ordered enchantment plan can fail even when you still have plenty of XP.
The anvil is one of Minecraft's most important tools for creating powerful gear. Let's start with the fundamentals.
An anvil is a block that allows you to:
Each operation costs XP levels and increases the item's hidden "work penalty".
Place items in the anvil slots:
The cost is shown in the output slot. If it says "Too Expensive!", the operation cannot be performed.
This is the most important concept to understand. The work penalty (also called "prior work penalty") is a hidden value that increases every time you use an item in an anvil.
Every item and book has a hidden "work penalty" value that starts at 0. Each time you use that item in an anvil (left slot), its penalty increases by 1. This penalty is then used to calculate additional costs for future operations.
Notice how the cost grows exponentially! This is why order matters so much.
Prior work penalty in Minecraft is the hidden anvil history stored on an item or enchanted book. A fresh item has penalty 0. After repeated anvil use, that hidden count adds 1, 3, 7, 15, then 31 extra levels before the real enchantment cost is added. The penalty from both input slots counts toward the displayed anvil cost, which is why a book that was already merged can make a final sword, pickaxe, or armor piece suddenly say "Too Expensive".
For practical enchanting, the safest rule is simple: use fresh villager books when possible, pair books with similar histories, and avoid repeatedly applying one book at a time to the same target item.
The game can continue storing a higher repair cost, but for normal survival enchanting the practical danger point is 5 prior anvil uses. At that point the penalty cost is already 31 levels, leaving only 8 levels before the 39-level cap blocks the operation. A high-value enchantment like Sharpness V, Protection IV, Efficiency V, or Mending can push the total over the limit immediately.
If your item already has a penalty of 4 or 5, treat it as nearly finished. Add only cheap final changes, or restart with a fresh item and use the Minecraft enchantment calculator to plan a lower-penalty combining order.
Every anvil operation has a cost calculated from multiple factors. Understanding this helps you minimize total costs.
Each enchantment has a base cost that depends on its rarity and level:
When combining, you pay for all enchantments being added or upgraded.
The item in the left slot adds cost based on its work penalty:
Cost = 2left_penalty - 1
This is why you want to keep your main item's penalty low by combining books first.
The item in the right slot also adds cost:
Cost = 2right_penalty - 1
Books from villagers have penalty 0, which is why they're ideal.
If you rename the item, add 1 level to the cost.
This doesn't affect the work penalty, just the immediate cost.
Combining a Diamond Sword (penalty 2) with a Sharpness V book (penalty 1)
For a deeper worked example with enchantment multipliers, Java vs Bedrock differences, and a full combining table, see the Minecraft anvil cost guide.
This is the most frustrating message in Minecraft enchanting. Let's understand why it happens and how to avoid it.
Minecraft has a hard-coded limit: any anvil operation that would cost more than 39 levels is blocked. This isn't about whether you have enough XP - even if you have 100 levels, if the operation costs 40+, it will fail.
This limit exists to prevent infinite enchantment stacking and keep the game balanced.
Once you hit this limit, there's no way around it except to start over with a better order.
Direct answer: "Too Expensive!" means the operation cost is 40 levels or more. It does not mean you lack XP. The usual cause is too much prior work penalty from repeatedly adding books to the same item, repairing the item in an anvil, or using pre-combined books with their own penalty.
The calculator finds the optimal order to stay under 39 levels
Trade with villagers for max-level books (penalty 0)
Create combined books before applying to your item
Decide all enchantments before starting
Start with new items and books (penalty 0)
The sequence matters more than you think
The anvil limit is a rule on the operation cost, not your character level. A player with 80 levels can still be blocked if the anvil operation costs 40. This is why saving more XP will not fix a high-penalty item. The fix is a lower-cost combining order, usually by combining fresh books in pairs before applying them to the target item.
| Symptom | Likely Cause | Best Fix |
|---|---|---|
| One more book makes the anvil say "Too Expensive!" | The target item already has several prior anvil uses. | Rebuild from a fresh item and combine books in a balanced order. |
| A merged book costs much more than expected | The book already carries prior work penalty from earlier book merges. | Use max-level villager books or loot books with no previous anvil work. |
| Repairing the same tool keeps getting worse | Each anvil repair adds another work count to the item. | Use Mending for long-term repair when possible instead of repeated anvil repairs. |
| You have enough XP but the output is blocked | The operation cost is 40 or more levels; current XP does not override the cap. | Lower the operation cost with a new combining order or start over. |
Many players confuse the two numbers because the anvil only shows one total. The table below separates the hidden penalty from the visible enchantment job:
| Cost part | Where it comes from | Best fix |
|---|---|---|
| Prior work penalty | Past anvil uses on the left item and the right item. | Use fresh books, combine in balanced pairs, or rebuild from a fresh item. |
| Enchantment cost | The enchantments being added, upgraded, or merged. | Use max-level books directly instead of making them from lower-level books. |
| Rename cost | Optional item name change in the anvil. | Rename only once, ideally after the main enchantment plan is finished. |
| Too Expensive limit | Total cost reaches 40 levels or more in survival mode. | Run the enchantment order calculator before applying books. |
Vanilla survival does not show an item's prior work counter as a separate number. You check it indirectly by comparing the anvil cost of known operations, reviewing the item's repair and combine history, or recreating the planned inputs in an enchantment order calculator.
Important: the visible anvil price is not the prior work penalty by itself. It also includes enchantment transfer, upgrades, repairs, incompatible operations, and optional renaming. Commands or data viewers can expose internal values in technical workflows, but ordinary survival players should diagnose the penalty from history and cost differences.
Now that you understand the mechanics, let's learn how to optimize your enchanting to minimize costs and avoid "Too Expensive!" errors.
The key to minimizing costs is to build a balanced tree structure, similar to a tournament bracket. Instead of adding books one by one to your item (linear), you combine items with similar penalties together (balanced).
Item (penalty grows each time)
โ
Book 1 โ Penalty 1
โ
Book 2 โ Penalty 2
โ
Book 3 โ Penalty 3
โ
Book 4 โ Penalty 4
โ
Book 5 โ Penalty 5
โ
Book 6 โ TOO EXPENSIVE!
Each step increases the item's penalty, making future operations exponentially more expensive.
Final Item
โ
โโโโโโโดโโโโโโ
AB CD
โ โ
โโโโดโโโ โโโโดโโโ
Book A B Book C D
Penalties stay low throughout the process, keeping all operations under the 39-level limit.
Before applying to your item, combine books together in pairs. This creates intermediate books with penalty 1 instead of applying each book individually.
Try to keep the tree balanced so that items with similar penalties are combined together. This minimizes the exponential growth.
Your main item should be used as late as possible in the process. Combine all books first, then apply the combined result to your item.
Get max-level enchanted books from villager trading. Never combine lower-level books as this adds unnecessary penalty.
Our enchantment calculator uses advanced algorithms to:
What would take hours to calculate manually, our calculator does in seconds!
Try the Calculator โLet's see the difference between wrong and right methods with a concrete example.
We want to add: Sharpness V, Looting III, Sweeping Edge III, Fire Aspect II, Knockback II, and Unbreaking III
Sword + Sharpness V
Cost: 10 levels | Sword penalty: 1
Sword + Looting III
Cost: 6 + 1 = 7 levels | Sword penalty: 2
Sword + Sweeping Edge III
Cost: 6 + 3 = 9 levels | Sword penalty: 3
Sword + Fire Aspect II
Cost: 4 + 7 = 11 levels | Sword penalty: 4
Sword + Knockback II
Cost: 4 + 15 = 19 levels | Sword penalty: 5
Sword + Unbreaking III
Cost: 6 + 31 = 37 levels | Sword penalty: 6
โ ๏ธ Barely made it! Any more enchantments would fail.
Final Penalty: 6 (very high - can't add more)
Sharpness V + Looting III
Cost: 6 levels | Book penalty: 1
Sweeping Edge III + Fire Aspect II
Cost: 4 levels | Book penalty: 1
Knockback II + Unbreaking III
Cost: 4 levels | Book penalty: 1
(Sharp+Loot) + (Sweep+Fire)
Cost: 10 + 1 + 1 = 12 levels | Book penalty: 2
Sword + (Knock+Unbr)
Cost: 10 + 1 = 11 levels | Sword penalty: 1
Sword + (All 4 enchants)
Cost: 20 + 1 + 3 = 24 levels | Sword penalty: 2
โ Success! Much cheaper and lower penalty.
Final Penalty: 2 (low - can add more if needed)
๐ฐ Saved 32 levels compared to linear method!
By using a balanced tree structure, we:
This is exactly what our calculator does automatically!
For those who want to dive deeper into the mechanics.
Renaming an item in the anvil adds 1 level to the cost, but doesn't affect the work penalty. This means you can rename items without worrying about future costs.
Tip: Rename your item in the same operation as adding enchantments to save on total anvil uses.
Repairing items with materials or combining two damaged items also increases work penalty. This is why Mending is so valuable - it repairs without using the anvil.
Formula: Repair cost = Material cost + Work penalty cost
When combining two enchanted items (not books), you only pay for enchantments that are new or increase in level. Duplicate enchantments at the same level are free.
Example: Combining two Sharpness V swords costs nothing for Sharpness (already max level).
The anvil mechanics are nearly identical between Java and Bedrock editions. The main differences are in which enchantments exist (e.g., Sweeping Edge is Java-only).
Note: Our calculator works for both versions. If you want to compare raw experience points with the green level number, use the Minecraft XP calculator. If you are playing ATM10 or another Apotheosis-based modpack, read the ATM10 Apotheosis prior work penalty guide because modded XP costs can differ from vanilla.
Each enchantment has a "multiplier" that affects its base cost. Rare enchantments like Mending have higher multipliers. The exact formula involves the enchantment's rarity level.
Rarity levels: Common (1x), Uncommon (2x), Rare (4x), Very Rare (8x)
When combining two books with the same enchantment, the level increases if possible. For example, Sharpness IV + Sharpness IV = Sharpness V.
Warning: This adds work penalty! Better to get max-level books from villagers.
Adding books one at a time seems logical, but it's the worst approach. Each addition increases your item's penalty exponentially.
Fix: Combine books first, then apply to item.
Combining Sharpness III + Sharpness III to get Sharpness IV adds work penalty to the result, making it more expensive to use later.
Fix: Trade with villagers for max-level books.
Starting to enchant without knowing all the enchantments you want often leads to "Too Expensive!" errors.
Fix: Decide all enchantments first, then use calculator.
Each repair increases work penalty. After a few repairs, you can't add more enchantments.
Fix: Use Mending to repair with XP instead.
Prior work penalty is a hidden value that starts at 0 for new items and increases after anvil work. It is used to calculate extra cost as 2^uses - 1 levels. The visible sequence is 0, 1, 3, 7, 15, and 31 levels, which is why repeated anvil work gets expensive so quickly.
The practical max is usually 5 prior anvil uses, because the penalty alone becomes 31 levels. Since Minecraft blocks anvil operations at 40 or more levels, even a modest enchantment cost can make the next operation say "Too Expensive!".
It means the calculated operation cost is above Minecraft's allowed anvil limit. The message is based on the formula result, not your current XP balance. If the item already has a high prior work penalty, the reliable fix is to rebuild the enchantments from fresh books in a better order.
Yes. In normal survival play, an anvil operation must cost 39 levels or less. At 40 or more levels, the output is blocked with "Too Expensive!". Creative mode can bypass this, but survival enchanting has to stay under the limit.
No, work penalty cannot be reset or removed. Once an item has been used in an anvil, its penalty is permanent. This is why it's crucial to plan your enchanting order carefully from the start using our calculator tool.
The 39-level limit is hard-coded into Minecraft to prevent infinite enchantment stacking and maintain game balance. Any operation that would cost 40 or more levels is automatically blocked with the "Too Expensive!" message, regardless of how much XP you have.
Our calculator evaluates thousands of possible combination orders, calculating the exact cost for each sequence. It uses algorithms to build balanced tree structures that minimize work penalty accumulation, ensuring all operations stay under the 39-level limit while finding the absolute cheapest total cost.
Yes! The left slot item keeps its penalty and increases by 1, while the right slot item is consumed. Always put your main item (the one you want to keep) in the left slot. When combining books, put the one with higher penalty on the left to minimize the result's penalty.
Books from villager trading have work penalty 0. When you combine two lower-level books (e.g., Sharpness III + Sharpness III), the result has penalty 1, making it more expensive to use later. For maximum enchantments, you need all books to start at penalty 0.
It depends on the final work penalty. If your item ends with penalty 4-5, adding more enchantments will likely hit "Too Expensive!". For maximum enchantments (8-10), you typically cannot add more afterward. Plan all desired enchantments before calculating.
Unfortunately, if your item already has a high work penalty (4+), your options are limited. You may not be able to add many more enchantments. The best solution is to start fresh with a new item and use the calculator from the beginning to avoid this situation.
A grindstone removes most enchantments and resets the prior work penalty, but it also removes the enchantments you were trying to keep. That can be useful for salvaging the item, but it is not a way to keep a finished sword, pickaxe, or armor piece while removing its anvil history.
The total cost includes the prior work penalty from both input items. The output keeps the left item's identity and gets a higher work count, while the right item is consumed. This is why book order and slot choice can change the cost of later steps.
Yes. The combined book receives a higher anvil history, so it can cost more when you apply it later. Combining books is still useful when done in balanced pairs, but repeatedly upgrading low-level books can create expensive books that are worse than fresh max-level villager books.
Enchantment cost is the part of the total that comes from the enchantment being added or upgraded, such as Sharpness V or Protection IV. The number shown by the anvil also includes prior work penalties and optional rename cost, so a high total is not always caused by the enchantment itself.
Now that you understand how the Minecraft anvil works, use our calculator to put this knowledge into practice. Get the optimal enchanting order in seconds and avoid "Too Expensive!" errors forever.
Use Enchantment Calculator โFree tool โข Instant results โข Works for any combination