Skip to content
MC Calc

Anvil “Too Expensive!”: why it happens at 40 levels and the order that keeps a 7-book sword at 49

Each anvil use doubles an item's hidden penalty; at 40 levels the anvil refuses. Seven books on a sword cost 148 levels one by one, 49 in the right order.

Java Edition4 min read

An anvil shows “Too Expensive!” when a single step would cost 40 levels or more. The cause is almost never the enchantment itself. It is a hidden penalty that doubles every time the item goes through an anvil. Put seven books on a sword one after another and the last step asks for 65 levels; combine the same books in pairs first and the whole job costs 49, with no step above 15.

Nothing in this article was measured in the game. An anvil needs a player and our test server has none, so every number below is computed by the Anvil Order Calculator’s code (penalty, bookValue, optimize), which follows the rules on the Minecraft Wiki’s “Anvil mechanics” page for Java Edition.

The penalty that causes it

step cost = enchantment cost + penalty of the target + penalty of the sacrifice  ·  penalty = 2^uses − 1
Times through an anvil0123456
Penalty in levels0137153163
Adding one Mending book (2)2359173365: refused
Adding one Unbreaking III book (3)34610183466: refused

The result of a combination takes the higher use count of its two inputs, plus one. So an item that has been used six times carries a 63-level surcharge and can never be worked on again in Survival, whatever you try to add. Five uses is the practical ceiling, and only for cheap books.

The enchantment part of the cost is small by comparison. From a book it is level × a per-enchantment multiplier: Sharpness V is 5, Unbreaking III is 3, Mending 2, Knockback II 2, Fire Aspect II 4, Looting III and Sweeping Edge III 6 each.

The same seven books, two ways

The sword: diamond or netherite, fresh, no anvil uses. The books: all seven above.

One book at a time

StepBook costSword’s penaltyLevels
Sharpness V505
Looting III617
Sweeping Edge III639
Fire Aspect II4711
Knockback II21517
Unbreaking III33134
Mending26365: Too Expensive!

148 levels in total, and you never get Mending. The sword went through the anvil six times before the last book, and that alone put it over the limit.

The order the calculator finds

StepLevels
Sword + Fire Aspect II4
Sweeping Edge III + Mending (book on book)2
Sword + that book10
Looting III + Unbreaking III (book on book)3
Sword + that book13
Sharpness V + Knockback II (book on book)2
Sword + that book15

49 levels, the dearest step 15, and the sword has been through the anvil four times instead of seven. Paid step by step, 49 levels come to 821 experience points, because cheap steps are paid with cheap low levels. Paying the first route’s 34-level step alone takes more than that.

Two things explain the difference. Books are combined with books, so most anvil uses land on books that are then consumed, and the sword itself is the target only four times. And only the sacrifice’s enchantments are charged, so in each pair the cheaper book is the one sacrificed: Mending onto Sweeping Edge costs 2, while Sweeping Edge onto Mending would cost 6.

What if the sword already has anvil uses?

Sword’s prior usesBest totalDearest stepOne book at a time
049 levels15148 (last step refused)
156 levels17275
265 levels25529
377 levels331,037

Even a sword that has already been through the anvil three times can still take all seven books if they are merged first: the dearest step is 33, under the limit. One at a time, it is hopeless from the first prior use. (The Minecraft Wiki notes that renaming alone doesn’t add a use; repairing with materials does.)

Worked example

Adding Mending to a tool you have already worked on

  1. Count how many times the tool has been through an anvil: each enchanting step and each repair is one.
  2. Look up the penalty: 3 uses is 7 levels, 4 uses is 15, 5 uses is 31.
  3. A fresh Mending book costs 2, so the step is 9, 17 or 33 levels. At 6 uses it would be 65, and the anvil refuses.
  4. 33 levels paid from level 33 is 1,758 experience points. Do it before the fifth use if you can.

Plan the whole item before the first anvil click. The order you combine in can’t be undone, and the penalty only goes up. Enter the enchantments you want in the calculator and it searches every pairing for the cheapest sequence that keeps each step under 40.

Anvil Order CalculatorThe cheapest combining order for any item and set of books, step by step. Opens on the seven-book sword: 49 levels.

What those levels cost in experience points is in how much XP level 30 takes. And why Mending and Unbreaking are worth the anvil trouble: diamond pickaxe durability.

Questions

Why does my anvil say Too Expensive?

The step would cost 40 levels or more, and Survival anvils refuse that. The usual cause is the prior work penalty: each anvil use on an item doubles a hidden surcharge (0, 1, 3, 7, 15, 31, 63 levels), so an item that has been through the anvil six times is over the limit before you add anything.

How do you fix Too Expensive in Minecraft?

You can't lower an item's penalty by combining, so avoid building it up: merge books with each other first, then put the merged books on the item, so the item itself goes through the anvil as few times as possible. Seven books can go onto a sword in four uses of the sword.

How many times can you use an anvil on one item?

For cheap additions, five. A single Mending book (2 levels) costs 33 levels on an item with five prior uses and 65 with six, which is refused. Costlier books hit the limit sooner.

Does the order of enchantments on an anvil matter?

A lot. Adding Sharpness V, Looting III, Sweeping Edge III, Fire Aspect II, Knockback II, Unbreaking III and Mending to a sword one at a time costs 148 levels and the last step is refused. The best order costs 49 with no step above 15.

All guides →