AnvilCalc

Guides / Enchanting Strategy

Enchanting Strategy: How the Anvil Actually Works

Every enchanted item you've ever seen on a good survival world went through the same machine: an enchanting table for the first roll, then an anvil for everything after. AnvilCalc exists because that second step has a hidden cost curve that punishes the wrong order — and once you understand why, you can build anything without ever hitting Too Expensive!

The prior-work penalty is the whole game

Every time an item or book goes through an anvil, its internal "anvil use count" goes up by one. The level cost of its next combine is then multiplied using the formula 2^c − 1, where c is that count: 0, 1, 3, 7, 15, 31 levels of pure penalty, stacking on top of whatever the enchantments themselves cost. This is why combining four separate books one at a time onto your sword gets exponentially more expensive with each step, while combining books together first — in a separate side merge — then applying the result once, keeps both sides' penalties lower for longer.

0×+01×+12×+33×+74×+155×+31

Penalty in XP levels added on top of enchantment cost, by how many times that item or book has already been through an anvil.

When two items merge, the result only inherits the higher of the two prior-work counts, plus one — not the sum. That single rule is the reason a smart combine order can be dramatically cheaper than an obvious one, and it's exactly what AnvilCalc's solver searches for automatically.

The 39-level wall

In Java Edition, if a single anvil operation would cost 40 levels or more, the anvil refuses it outright and shows Too Expensive! — even in Creative mode, where the display differs but the same cap applies to what you can commit in Survival. Bedrock enforces the same 39-level ceiling per operation, just without the exact "Too Expensive!" wording. This cap applies per step, not to your total build cost — which is exactly why breaking a big enchantment list into the right sequence of smaller merges is often the only way to finish a build that looks impossible at a glance.

Books vs. items as the sacrifice

Combining an enchanted book into an item is cheaper, level-for-level, than sacrificing a second copy of the same item — anvil-core (and the real game) applies a lower cost multiplier for book sacrifices. If you're farming a villager or an enchanting table for a specific enchantment, book results are worth prioritizing over a second full item purely for how much cheaper they are to apply later.

Netherite is a free pass

Upgrading diamond gear to netherite at a smithing table costs no XP, doesn't touch the prior-work penalty, and keeps every enchantment exactly as it was. There's genuinely no reason to delay: enchant the diamond version fully, then upgrade whenever you get the netherite ingot and smithing template. See the Netherite Conversion guide for the full breakdown.

Let the solver do the ordering

All of this — the exponential penalty, the cap, book-vs-item cost, conflicting enchantments — is exactly what the calculator on the home page solves for automatically. Pick your item, tap the enchantments you want, and it returns the cheapest possible sequence of anvil steps, ready to follow in-game.

Open the calculator →