Anvil costs in Minecraft Java Edition are not random — they follow a formula, and the order you combine enchantments changes the price a lot. Each item remembers how many times it has been worked on, and that 'prior work' penalty doubles every time. This calculator works out the exact cost of one anvil step, and warns you if it hits the 40-level 'Too Expensive!' cap.
How to use this calculator
- Enter how many times each input item has already been used on an anvil.
- Pick the enchantment on the sacrificed item and its final level.
- Tick 'from a book' if the enchantment comes from an enchanted book (the multiplier is halved).
- Add renaming or repair if you are doing those too, then press Calculate.
Formula
Cost = (2^a − 1) + (2^b − 1) + Σ (final level × multiplier) for each enchantment on the sacrificed (right-slot) item, where a and b are the prior anvil-use counts of the two inputs. The result's prior-use count = max(a, b) + 1. Prior-work penalty: 0 uses → 0, 1 → 1, 2 → 3, 3 → 7, 4 → 15, 5 → 31, 6 → 63. Multipliers (book / item): common ×1/×1 (Protection, Sharpness, Efficiency, Power, Piercing), uncommon ×1/×2 (Fire Protection, Feather Falling, Smite, Unbreaking…), rare ×2/×4 (Blast Protection, Looting, Fortune, Mending…), very rare ×4/×8 (Thorns, Silk Touch, Soul Speed, Infinity, Curses…). Renaming costs +1, repairing with raw material +1 per unit, repairing by sacrificing a copy +2. Any anvil job costing 40+ levels is refused ('Too Expensive!').
Worked example
A Sharpness V book (multiplier ×1, halved for books) costs 5 × 1 = 5 levels to transfer onto a fresh sword. A Soul Speed III book (very rare, ×4) costs 3 × 4 = 12 levels. On Bedrock Edition the cost is the level increase × multiplier instead — Efficiency III → V with an Eff V book costs 2 on Bedrock but 5 on Java.
Tips
- Combine books pairwise into compound books first, then apply the finished book to the gear — that way no single item accumulates a large prior-work penalty.
- Never work the same item more than 5–6 times: the penalty alone (31–63 levels) can make any further job Too Expensive.
- Books are cheaper than items for the same enchantment — the multiplier is halved (rounded down, minimum 1).
- Renaming costs an extra level, so rename first if you are going to rename at all.
- Bedrock charges the level increase × multiplier, Java charges the final level × multiplier — the same job can cost different amounts.
Frequently asked questions
Why does my anvil say Too Expensive?
Any anvil job costing 40 or more levels is refused in survival. The usual cause is a high prior-work penalty — the item has been worked on too many times.
What is the prior-work penalty?
Each item remembers how many times it has been on an anvil. The penalty is 2^n − 1 levels: 0 for a fresh item, 1 after one use, 3 after two, 7 after three, 15 after four, 31 after five.
Is it cheaper to combine books first?
Yes — combine enchanted books pairwise into one compound book, then apply it to the gear once. That keeps the gear's prior-use count low.
Why is Mending so expensive to add?
Mending is a rare enchantment (×2 from a book, ×4 from an item), so a Mending book costs 2 levels per level of the enchantment.
Is the anvil cost the same on Bedrock?
No. Java charges final level × multiplier; Bedrock charges the level increase × multiplier. Prior-work penalty maths is the same.
