Vorla / Minecraft Tools / Anvil Calculator

Anvil Calculator — cheapest enchant order

Pick your item, add the enchanted books, and get the provably cheapest combine order — every anvil use, its XP level cost, prior work penalties and "Too Expensive!" warnings. Java edition.

1 Target item
2 Enchanted books
Up to 8 books. Levels default to max — change them per book.
3 Starting item state
Cheapest plan
Add at least one enchantment book above to see the plan.

How the anvil math works

anvil uses survived0123456
penalty it adds0137153163

FAQ

What is the prior work penalty?

A hidden counter on every item and book that goes up by 1 each time it survives an anvil. The penalty it adds to a combine is 2work − 1 levels: 0, 1, 3, 7, 15, 31, 63… Both the target and the sacrifice add theirs, and the result keeps max(both) + 1. Renaming an item also counts as anvil work in older versions — in modern Java, renaming costs 1 level flat and doesn't raise the counter.

Why combine books with books first?

Penalties depend on work counts, so the cheapest plan keeps work counts low on the pieces that get combined most. Merging books in pairs, then pairs of pairs, and finally one big book onto the item (a balanced bracket) usually beats one-at-a-time by a wide margin — the calculator shows you exactly how much you save.

What does "Too Expensive!" mean and how do I avoid it?

Survival anvils refuse any single use costing more than 39 levels. Avoid it by using the balanced order this tool suggests, starting from a fresh (zero-work) item, or settling for one fewer heavy enchant. If even the optimal plan has a step over 39, that combination simply can't be finished in Survival on that item.

Is this Java or Bedrock?

Java edition. Bedrock uses the same prior-work doubling but slightly different enchant multipliers and merging rules, so totals can differ by a few levels. The Java anvil formula has been stable for years, so the plan holds across modern versions.

Related tools