Enchantment Calculator - Best Anvil Order
Pick your gear and the books you want on it. Every possible combine order is searched for the cheapest tree, with exact level costs, prior work penalties, conflicts and the 39-level cap. Java Edition 26.3, straight from the server's own data.
1 · Your item
The gear (or book) the enchantments end up on.
2 · Enchantments
Each pick is one enchanted book at the level you set. Struck-through chips conflict with something you picked.
Combine tree
left slot right slotBefore the anvil
Enchanting Table Basics
The table shows three offers at a time. They cost 1, 2 and 3 lapis lazuli and take 1, 2 and 3 levels. The big number on an offer is the level you need to have, not what you pay: a level-30 offer only takes 3 of your levels.
Bookshelves placed exactly two blocks from the table, with air in between, power it up. 15 bookshelves is the maximum and makes the bottom offer level 30 every time; more do nothing. Drag the slider to see how the offers shift.
Treasure enchantments never come from the table: Mending, Frost Walker, Soul Speed, Swift Sneak, Wind Burst and both curses. They turn up as books in loot, trades and vaults, which is what the anvil planner above is for.
Offers come from a hidden seed that only changes when you actually enchant something, so swapping items in and out won't reroll them. Enchanting a cheap book in the top slot (1 lapis, 1 level) is the classic way to get fresh offers.
Every level each offer can show at this shelf count, shaded by how likely it is, using the game's own formula.
Reference
All 43 Enchantments
Java 26.3Max level, anvil multiplier, conflicts, where to get it and what it actually does. Filter by the item you are enchanting.
How Anvil Costs Work
Cost = prior work penalty of both items + (resulting level × multiplier) for every enchantment on the right-hand item. Books use half the multiplier. A job costing 40 or more levels shows "Too Expensive!" in Survival.
Every item remembers how many times it has been through an anvil. That count sets its prior work penalty, which roughly doubles each time: 1 level after one use, then 3, 7, 15, 31 and 63. Both the left and the right item add their penalty to the bill, and the result takes the larger count plus one. That is why the same books can cost 25 levels in one order and blow past the cap in another.
On top of the penalties, each enchantment that moves over from the right-hand item costs its resulting level times its multiplier. Protection, Sharpness and the other common ones are ×1; Silk Touch, Thorns and Infinity are ×8. If the right-hand item is an enchanted book the multiplier is halved (rounded down, never below 1), so books are almost always the cheaper way to enchant.
Two smaller rules: combining two copies of the same enchantment at the same level gives the next level (two Sharpness IV books make Sharpness V, up to the max), and a conflicting enchantment on the right-hand item is dropped but still adds 1 level per conflict.
How to Avoid "Too Expensive"
- Plan the whole build before you touch the anvil. Once an item has been worked six times its penalty alone is 63 levels, and nothing more can be done to it in Survival.
- Keep the combine tree balanced: books into pairs, pairs into fours, then onto the gear. Stacking books onto the item one at a time doubles its penalty at every step.
- When merging two books, put the more expensive one on the left. Only the right-hand item's enchantments are charged.
- Repairs with materials or a second item count as an anvil use too. Finish enchanting first, and let Mending do the repairs afterwards.
- If a build can't fit under the cap, the calculator says so and suggests which book to leave off.
Frequently Asked Questions
What is the best order to combine enchantments?
Merge books with books first, then apply the combined book to your gear, keeping the tree balanced so no single item piles up a big prior work penalty. In each book merge, the more expensive book goes on the left. The exact cheapest order depends on each enchantment's multiplier and level, which is what the calculator at the top of this page works out.
Why does my anvil say "Too Expensive!"?
Survival anvils refuse any job of 40 levels or more. Each anvil use roughly doubles the item's prior work penalty (1, 3, 7, 15, 31, 63), so gear that has been worked five or six times can't be changed any more. The only fix is prevention: plan a balanced order so the penalty never snowballs.
Does renaming an item make it more expensive later?
Not if you only rename it. A rename-only job costs 1 level plus the penalties, is capped at 39 so it never shows "Too Expensive!", and leaves the item's prior work count where it was. Renaming at the same time as adding a book or repairing costs 1 extra level and counts as a single use.
How many enchantments can a sword have?
Seven useful ones: one damage enchantment (Sharpness, Smite or Bane of Arthropods), Fire Aspect, Knockback, Looting, Sweeping Edge, Unbreaking and Mending. Curse of Vanishing can make it eight. The calculator enforces the conflicts for you.
Can I combine two Sharpness IV books into Sharpness V?
Yes. Two books of the same enchantment at the same level combine into the next level, as long as that stays within the max. Combining two different levels just keeps the higher one.
Do Mending and Infinity conflict?
Yes, and since Infinity only goes on bows, that only matters for bows: pick one. Mending works with everything else, including crossbows and tridents.
How many bookshelves do I need for level 30?
15, each exactly two blocks from the table with air between them and the table. At 15 the bottom offer is always level 30, and the table ignores anything past 15.
Hadalpelagia