Inventory
Books (1 of 7)
Merge tree
Read top to bottom: each pill is one anvil use with its level cost. The outlined box is your item.
Step by step
- 1SwordEnchanted Book (Sharpness V)5 levels
Final item: Sword (Sharpness V) with prior work penalty 1. Applying the books in listed order would cost 5 levels.
Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.
Related tools
- Minecraft XP CalculatorExact level-to-XP math, Mending repair costs, and kill counts, verified against decompiled game code.
- Minecraft Elytra Flight CalculatorSimulates elytra glide physics tick by tick: distance from any height, firework cruise speed, rockets per trip, and durability.
- Minecraft Damage CalculatorArmor, fall, and mace smash damage per Minecraft version, verified against real dedicated servers and decompiled game code.
- Minecraft Villager Trade and Discount CalculatorReal per-version villager trades with the exact price after zombie cures, Hero of the Village, and demand.
- Minecraft Beacon CalculatorPyramid layer block counts, material cost in ingots, effect range and duration, and shared multi-beacon base totals.
- Minecraft Crop Growth and Breeding TimerExact growth times, farm layout throughput, bone meal costs, and animal breeding timers from the game's real random tick math.
What it does
Calculates exact Minecraft anvil level costs per game version. Combine two items, an item and an enchanted book, repair with raw materials, or rename, and get the full price broken into repair units, the sacrifice durability bonus, per enchantment fees, incompatibility penalties, rename charges, and prior work, plus the resulting item and Too Expensive detection. Every number is reimplemented from the game's own anvil code, decompiled or unobfuscated per version, and verified against a committed suite of worked cases. Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.
How to use it
Pick a game version, then fill the two anvil slots: choose the target item with its enchantments, prior work, and damage, and a sacrifice item, enchanted book, or repair material. The cost breakdown updates as you edit. The planner tab takes an item plus up to seven books and searches every merge tree for the cheapest order, and the horizon tab shows how many combines remain before a prior work penalty makes everything Too Expensive.
Why this one
Most anvil sites only sort enchantments and silently assume one version's numbers. This one models the whole algorithm: unit repairs, the 12 percent sacrifice bonus, per pair incompatibility penalties, the rename-only clamp at 39 levels, and prior work that doubles after every combine, with separate verified data for 1.16.5 through the current release. It has no ads or level caps, and your files and inputs never leave your device.
FAQ
- Which versions behave differently at the anvil?
- The cost formula itself has been stable since 1.16.5; the data around it changed. 1.16.5 and 1.18.2 price enchantments by rarity (1, 2, 4, or 8 per level) and crossbow durability grew from 326 to 465 in 1.18.2. In 1.20.5 the repair cost moved from NBT to an item component and Impaling joined the Sharpness exclusivity group. 1.21 made enchantments data driven: Silk Touch stopped clashing with Looting and Luck of the Sea, and the mace arrived with Density and Breach. 1.21.11 and 26.2 add spears with Lunge and show a cost of 0 when a combine changes nothing, where older versions showed the prior work sum.
- Why does my combine say Too Expensive?
- Any combine totaling 40 levels or more is refused in survival. The prior work penalty doubles plus one after every combine (0, 1, 3, 7, 15, 31, 63), so a fresh item supports at most six combines before only creative mode can touch it. Renaming alone is exempt: its price clamps to 39 and it never raises the prior work penalty.
- Does the merge order really matter?
- Yes. Applying five books to a sword one by one can cost 46 levels while the best merge tree costs 31, because prior work compounds on the item and each enchantment's fee is charged every time it transfers. The planner searches every merge tree exactly, so the plan it prints is the true minimum for the books you entered, not a heuristic.
Keyboard shortcuts: press ? anywhere on this page to see them.