Anvil Mechanics Deep Dive

How to Fix “Too Expensive!” on a Minecraft Anvil

In Survival mode (both Java and Bedrock Edition), an anvil refuses any operation costing 40 levels or more. The hidden culprit isn't the enchantments themselves—it's the exponential Prior Work Penalty.

Naive Linear Combining (7-Enchant Boots)
Peak Step: 65 Levels (TOO EXPENSIVE!)
Total Cost: 163 Levels (14,379 XP)

Putting books onto Boots one after another forces Prior Work Penalty to 1 → 3 → 7 → 15 → 31 → 63, locking your gear permanently.

Optimal Binary-Tree Order (Same 7 Books)
Peak Step: 16 Levels (100% Survival Safe)
Total Cost: 66 Levels (1,246 XP)

Pairing books into compact bundles saves 97 levels and keeps the final prior-work count at just 4.

The Exponential Prior Work Penalty Table (2ⁿ − 1)

When combining two items with prior-work counts A and B, you pay both penalties and the output receives max(A, B) + 1. Always pair items with matching prior-work counts!

Prior Anvil Uses (n)Extra Penalty (2ⁿ − 1)Survival Status
0+0 levelsBrand new item or villager book
1+1 levelsSafe zone for balanced binary-tree builds
2+3 levelsSafe zone for balanced binary-tree builds
3+7 levelsSafe zone for balanced binary-tree builds
4+15 levelsHigh cost — avoid adding expensive books here
5+31 levelsDanger zone — almost any enchant exceeds 39 cap
6+63 levelsHard locked in Survival (63 > 39 cap)

Common “Too Expensive!” Questions

Can you remove Prior Work Penalty using a Grindstone?

Yes! Putting an enchanted item through a Grindstone strips all non-curse enchantments AND resets its Prior Work Penalty back to 0—letting you start fresh with a clean binary tree.

Does renaming an item on an anvil increase Prior Work Penalty?

Renaming an item by itself does NOT increase Prior Work Penalty (it always costs 1 + current penalty). However, renaming at the same time as combining or repairing DOES increment it.

Does upgrading Diamond gear to Netherite on a Smithing Table reset penalty?

No. Upgrading Diamond gear to Netherite preserves all enchantments and keeps the exact same Prior Work Penalty.