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.
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.
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)
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.
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
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.
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.
Work penalty (also called "prior work penalty") is a hidden value that starts at 0 for new items and increases by 1 each time you use that item in an anvil's left slot. It's used to calculate additional costs: 2^penalty - 1 levels. This exponential growth is why order matters so much.
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.
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