Introduction
In Minecraft, adding enchantments to your gear with an anvil costs XP levels — and if you combine them in the wrong order, you can hit the dreaded "Too Expensive" cap and waste your hard-earned resources. Every time you use an anvil on an item, a hidden penalty grows, making the next combine cost even more. The order you apply enchantments matters a lot, especially when you're stacking five, six, or seven enchantments onto a single tool or piece of armor.
This Minecraft Enchantment Calculator figures out the cheapest way to combine your chosen enchantments. Just pick your item, select the enchantments and levels you want, and hit Calculate. The tool builds an optimal merge tree that pairs books together before applying them to your item, keeping each anvil step below the 40-level cap on Java Edition. It works for both Java and Bedrock across versions from 1.8 all the way to 1.21+, and it knows which enchantments conflict with each other so you don't pick two that can't go together.
You'll see the total XP cost, the most expensive single step, a step-by-step combining guide, and a bar chart showing the cost at each anvil use. Whether you're building a max diamond sword or a fully enchanted netherite chestplate, this calculator saves you levels and keeps your enchanting plan clean and simple. If you're also managing large quantities of items for your builds, our Minecraft Stack Calculator can help you figure out how many stacks you need.
How to use our Minecraft Enchantment Calculator
This calculator finds the cheapest order to combine enchantments on the anvil. Enter your game settings and pick your enchantments, and it will show you the optimal combining order, total XP cost, and each step needed to avoid the "Too Expensive" cap.
Edition: Choose either Java or Bedrock. This matters because Java has a 40-level cap on anvil costs, while Bedrock does not. Some enchantments like Sweeping Edge are also only available in Java.
Version: Select the Minecraft version you are playing. Newer versions include more enchantments and items, such as the Mace and Wind Burst in 1.21. Older versions will hide items and enchantments that did not exist yet.
Item: Pick the item you want to enchant using either the dropdown menu or the visual item grid below it. You can choose from swords, axes, pickaxes, armor, bows, tridents, and more. Each tool and armor piece comes in different material tiers like Wood, Iron, Diamond, and Netherite.
Enchantments: Once you pick an item, a list of all compatible enchantments appears. Check the box next to each enchantment you want, and use the dropdown beside it to set the level (for example, Sharpness V or Protection IV). Enchantments that conflict with your current choices are automatically grayed out. The item multiplier cost is shown next to each enchantment so you can see how expensive it is.
Calculate Optimal Order: Press the "Calculate Optimal Order" button after you have selected all your enchantments. The calculator will figure out the best way to combine books and merge them onto your item to keep the total XP cost as low as possible.
Results: The output shows your total XP level cost, the highest single-step cost, the number of anvil uses needed, and whether the combination is possible within the Too Expensive limit. A step-by-step list tells you exactly which items to combine at each stage, and a merge tree shows the full combining plan. A bar chart at the bottom displays the XP cost of each anvil step so you can see where the most expensive merges happen.
In Minecraft, enchanting lets you add special powers to your tools, weapons, and armor. You can add enchantments using an enchanting table, anvil, or enchanted books. The tricky part is that every time you use an anvil to combine items, the cost in experience levels (XP) goes up. If you combine things in the wrong order, you can hit the "Too Expensive!" cap in Java Edition, which blocks any anvil operation that costs 40 or more levels.
This Minecraft Enchantment Calculator figures out the best order to combine your enchanted books and items on an anvil so you spend the least total XP and avoid the "Too Expensive!" limit. It uses a balanced binary merge tree strategy — instead of slapping one book on after another (which makes each step cost more and more), it pairs books together first, then combines those pairs, and finally merges everything onto your item. This keeps the prior work penalty low at each step.
How the Anvil Cost System Works
Every time an item goes through an anvil, it gains a prior work penalty. The penalty cost doubles each time: 0, 1, 3, 7, 15, 31, and so on (calculated as 2n − 1, where n is the number of prior anvil uses). When you combine two items, the anvil adds together the prior work penalty of both items, plus the enchantment cost of the sacrifice item. Each enchantment has a multiplier — rare enchantments like Mending, Soul Speed, or Thorns cost more per level than common ones like Sharpness or Efficiency. Books have lower multipliers than items, which is why it's always cheaper to use books as the sacrifice.
Java Edition vs. Bedrock Edition
In Java Edition, any single anvil step costing 40 or more levels is blocked entirely — you'll see the red "Too Expensive!" message. This makes combining order extremely important. In Bedrock Edition, there is no such cap, so you can always complete the combination, but optimizing order still saves you XP. The calculator handles both editions automatically.
Key Tips for Efficient Enchanting
- Expensive enchantments first: Apply high-cost enchantments early when the prior work penalty is still low.
- Pre-combine books: Merging books together before applying them to your item keeps penalties balanced and lower overall.
- Watch for conflicts: Some enchantments can't exist on the same item. For example, you can't have both Sharpness and Smite, or both Silk Touch and Fortune. The calculator automatically disables conflicting options.
- Use fresh items: Items that have already been through the anvil carry a higher prior work penalty, making future combines more expensive.
- Version matters: Newer versions of Minecraft include enchantments that don't exist in older versions. Enchantments like Swift Sneak (1.19+), Soul Speed (1.16+), and Breach (1.21+) only appear when you select the right version.
How to Use This Calculator
Pick your game edition (Java or Bedrock) and Minecraft version. Select the item you want to enchant from the grid or dropdown. Check the enchantments you want and choose the level for each. Then hit Calculate Optimal Order. The calculator will show you every anvil step in order, the XP cost for each step, the total cost, and whether any step exceeds the "Too Expensive" limit. It also shows a merge tree so you can see exactly which books to combine with each other before applying them to your item.
Related Minecraft Tools
Planning a big Minecraft project involves more than just enchanting. If you're running a multiplayer server, our Minecraft Server RAM Calculator helps you figure out how much memory you need based on player count and mods. The Minecraft Tick Calculator is useful for understanding game timing mechanics, redstone circuits, and how long in-game events take in real-world seconds. And when you're gathering materials for your builds, the Minecraft Stack Calculator quickly converts between individual items and stacks so you know exactly how much inventory space you need. For players interested in building Nether highways or linking portals efficiently, our Nether Portal Calculator converts Overworld coordinates to Nether coordinates and vice versa.
If you enjoy competitive gaming beyond Minecraft, you might also find our KD Calculator handy for tracking your kill/death ratio in shooter games, or check out the Roblox Tax Calculator if you also play Roblox and want to understand marketplace fees.