Minecraft Enchantment Calculator

Find the cheapest anvil combine order for any set of enchantments. Handles pre-enchanted loot, prior work penalty, Java & Bedrock, and every enchantment through 1.21 — including the Mace.

Build your loadout
Java charges by result level; Bedrock charges by level increase.
Already used this item on an anvil?
For loot drops or items you've already worked on. Most fresh items = 0.
Advanced options
Total experience-level cost across all anvil ops.
Pick an item and some enchantments The optimal anvil order will appear here.

How this calculator finds the cheapest order

Every Minecraft anvil operation has two costs added together: the enchantment cost (which depends on what you're adding and at what level) and the prior work penalty, an exponential surcharge based on how many times each input has been worked. The penalty values are 0, 1, 3, 7, 15, 31 for items with 0 through 5 prior uses, and any single operation reaching 40 levels becomes "Too Expensive!" in survival mode.

That single fact — the penalty roughly doubles every step — is why the order matters so much. Applying seven books to a sword one at a time means the seventh book pays a 31-level surcharge before its actual cost. Combining the books pairwise into compound books first means each pair-merge starts at penalty 0, and the item itself takes four anvil uses instead of seven.

This calculator uses a branch-and-bound search to evaluate every combine plan that could lead to your target enchantment set, prunes the ones that can't beat the best plan found so far, and returns the cheapest valid sequence — including which item goes on the left (target) and which on the right (sacrifice) at each step. For typical 6–8 enchantment loadouts it finishes in well under a second on a phone.

Prior work penalty at a glance

Anvil usesPenalty surchargeSurvival status
0 (fresh)0OK
11OK
23OK
37OK
415Close to cap
531Almost no headroom
6+63+Too Expensive!

Java vs Bedrock — the cost-formula difference

Both editions use the same prior-work-penalty math, but they price the enchantment portion of each combine differently. In Java, the enchantment cost is the book multiplier times the result level: upgrading Efficiency III to Efficiency V with an Efficiency V book costs 1 × 5 = 5 levels. In Bedrock, the cost uses the level increase: the same upgrade costs 1 × (5 − 3) = 2. The gap grows for higher-multiplier enchantments — Silk Touch's book multiplier is 4, so Bedrock saves more there.

The practical effect: Bedrock loadouts almost always end up cheaper, and the optimal combine order can shift between editions because the relative cost of upgrading vs. fresh-applying changes. Use the Edition toggle at the top of the calculator to compare.

Most item icons are from UXWing, used under their free-for-commercial license (no attribution required — listed here as a thank-you).

Frequently asked questions

Related tools

Part of the Minecraft cluster on Done In Browser.