Fix 'Too Expensive!' on the Minecraft Anvil (2026)
The 40-level cap, why it triggers, and three concrete ways to defeat it without burning a stack of XP bottles.
What 'Too Expensive!' actually means
Whenever you put two things in a survival-mode anvil, Minecraft adds up a per-step XP cost. The number is computed as:
total = base_enchant_cost
+ prior_work_penalty(target)
+ prior_work_penalty(sacrifice)
prior_work_penalty(n) = 2^n - 1
Hit a total of 40 or more in survival, and the anvil refuses to do the combine - no XP spent, but no result either. The text shows up in red: Too Expensive!.
Creative mode and the /give command
bypass the cap, but the moment you switch back to survival the cap
applies. There is no vanilla /gamerule
to disable it.
Fix 1: Run the calculator on your books
Most 'Too Expensive!' problems come from a bad combine order, not a truly impossible plan. Drop your books into the calculator below and let it search every legal merge tree. The cheapest plan often saves 15-30 XP levels versus the obvious left-to-right order.
Anvil Calculator
Optimal order · XP cost · Too-Expensive guardPick the gear you want to enchant. Books you add below will be merged onto it in the cheapest order we can find.
Fix 2: Pair books first (then apply to the item)
When you combine two enchanted books, the result is a single book carrying both enchantments. That book then becomes one cheaper merge onto the target item. Book-pairing is almost always cheaper than item-pairing because books have lower prior-work (always 0 when fresh from villagers).
The calculator's exhaustive mode (up to 8 books) tries every combination of book-pairs and direct applies. For 9+ books it falls back to a greedy cheapest-pair-first strategy, which is near-optimal in practice.
Fix 3: Restart with a fresh item
If your sword already has prior-work 5 or 6, every single combine adds 31 or 63 XP just from the penalty. That's brutal. The cheapest path is often to craft a new sword, gather your books, and re-apply the entire loadout from scratch.
Some streamers reset whenever prior-work hits 3 (cost 7), reasoning that the freshly enchanted item will outlive any benefit from clinging to the old one. The calculator's Least prior-work mode helps plan combos that minimise prior-work growth - useful if you expect to add more books later.
Bonus: Mending as a XP sink
Mending doesn't lower anvil costs, but it removes the need to keep anvil-repairing your gear. Every anvil repair adds to prior-work; with Mending you replace that loop with a passive XP-fed repair that doesn't touch the anvil at all.
Pair an automatic XP farm (Iron Golem trade hall, AFK fish farm, blaze spawner) with Mending gear and the only anvil combines you ever do are the initial enchantment merges - keeping prior-work near zero for the item's whole life.
FAQ
- Why does Minecraft say 'Too Expensive!' on the anvil?
- Survival anvils refuse any single combine whose total XP cost reaches 40 levels. The total includes the base enchantment cost plus the prior-work penalty (2^n - 1) of each input.
- Can I disable the Too Expensive cap?
- Yes - in creative mode the cap is removed, but most servers run survival. The /gamerule maxAnvilCost rule does not exist; instead use the calculator above to plan an order that stays under 40 per step.
- Does the prior-work penalty reset?
- Only by destroying the item and crafting / receiving a new one. Mending repairs durability but does not reset prior-work. The grindstone removes ALL enchantments and the penalty, which is rarely worth it.
- Does the 1.20+ anvil rebalance change the cap?
- No. The cap is still 40 in both 1.20+ and Legacy mechanics. What changed in 1.20+ is the way prior-work accumulates across multi-book sequences - making book-pair-first plans cheaper than item-pair-first in many cases.
- Will Mending lower my anvil cost?
- Mending repairs durability passively as you gain XP. It doesn't change anvil math, but it lets you stop chaining anvil repairs - which is the actual driver of high prior-work penalties.