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
| Times through an anvil | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| Penalty in levels | 0 | 1 | 3 | 7 | 15 | 31 | 63 |
| Adding one Mending book (2) | 2 | 3 | 5 | 9 | 17 | 33 | 65: refused |
| Adding one Unbreaking III book (3) | 3 | 4 | 6 | 10 | 18 | 34 | 66: 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
| Step | Book cost | Sword’s penalty | Levels |
|---|---|---|---|
| Sharpness V | 5 | 0 | 5 |
| Looting III | 6 | 1 | 7 |
| Sweeping Edge III | 6 | 3 | 9 |
| Fire Aspect II | 4 | 7 | 11 |
| Knockback II | 2 | 15 | 17 |
| Unbreaking III | 3 | 31 | 34 |
| Mending | 2 | 63 | 65: 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
| Step | Levels |
|---|---|
| Sword + Fire Aspect II | 4 |
| Sweeping Edge III + Mending (book on book) | 2 |
| Sword + that book | 10 |
| Looting III + Unbreaking III (book on book) | 3 |
| Sword + that book | 13 |
| Sharpness V + Knockback II (book on book) | 2 |
| Sword + that book | 15 |
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 uses | Best total | Dearest step | One book at a time |
|---|---|---|---|
| 0 | 49 levels | 15 | 148 (last step refused) |
| 1 | 56 levels | 17 | 275 |
| 2 | 65 levels | 25 | 529 |
| 3 | 77 levels | 33 | 1,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.)
Adding Mending to a tool you have already worked on
- Count how many times the tool has been through an anvil: each enchanting step and each repair is one.
- Look up the penalty: 3 uses is 7 levels, 4 uses is 15, 5 uses is 31.
- 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.
- 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.
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.
More guides
How much XP for level 30? 1,395 points, about 200 bottles o’ enchanting (we threw 200)
Level 30 takes 1,395 experience points from zero, but a level-30 enchant only costs 306. We threw 200 bottles o' enchanting on Java 26.3: 1,419 XP. Guide · 4 min readDiamond pickaxe durability: 1,561 blocks, 6,244 with Unbreaking III (every tool checked in-game)
A diamond pickaxe mines 1,561 blocks, about 6,244 with Unbreaking III; netherite 2,031 and 8,124. We checked 53 durability values on Java 26.3. Guide · 4 min readLingering potion duration: a quarter of the bottle, and tipped arrows an eighth (every potion timed)
A lingering potion gives a quarter of the bottle's duration, a tipped arrow an eighth: Swiftness 3:00 becomes 0:45 and 0:22. Timed on Java 26.3. Guide · 5 min readHow long does sugar cane take to grow? 18 minutes per block on average (we grew 1,680 canes)
Sugar cane grows one block every 18 minutes on average and is fully grown within an hour. Counts from 1,680 canes on Java 26.3, next to the math. Guide · 5 min read