“Too Expensive!” is the most misread message in Minecraft. It does not mean you need more levels. It means the item in the anvil has accumulated a hidden cost that no amount of grinding will cover, and the game is telling you to stop.
The number is 39. Any anvil operation worth 39 levels or less works; anything above that is refused in Survival no matter whether you are level 30 or level 300. The reason you hit that wall has nothing to do with the enchantments you want and everything to do with how many times the item has already been through an anvil.
The counter you cannot see: prior work penalty#
Every time an item is used in an anvil — repairing it, combining enchants, adding a book — it picks up a prior work penalty. The penalty is added to the cost of the next operation, and it roughly doubles each time instead of growing steadily.
The values are exact and worth memorising:
- 0 previous anvil uses: penalty 0
- 1 use: penalty 1
- 2 uses: penalty 3
- 3 uses: penalty 7
- 4 uses: penalty 15
- 5 uses: penalty 31
That is the formula 2c−1, where c is the number of anvil uses. Renaming is the one exception: a rename costs 1 level and pays any existing penalty, but does not add to the count.
So a sword that has been through the anvil five times already carries 31 levels of overhead before a single enchantment is priced in. Add two or three enchantments and you are past 39. The item is not broken; it is just too expensive to keep improving, and the game has no way to fix that except starting from a cleaner base.
The ceiling is 39 levels, and it applies per operation#
Two things follow from the cap, and both change how you plan gear.
First, the cap is on the operation, not on your total spend. You can pour levels into an item across many cheap operations and still hit the wall, because the penalty is what grows.
Second, Creative mode ignores the cap entirely. That is why tutorial builds can show impossible combinations; if a design depends on a 50-level anvil operation, it does not work in a survival world.
Why “just repair it with ingots” makes things worse#
Unit repair — iron ingots on an iron sword, diamonds on a diamond pickaxe — restores 25% of maximum durability per unit and costs 1 level per unit, plus the item’s prior work penalty. It is cheap the first time and increasingly expensive after that, because every repair is another anvil use.
The efficient version of this is counter-intuitive: use the tool almost to breaking, then repair with four units at once. You spend the same 4 levels plus one penalty hit, instead of paying the penalty four separate times to top the item up after every trip.
Combining two of the same item works differently. It costs 2 levels for the repair, and the result gains the sacrifice’s durability plus a bonus of 12% of the item’s maximum durability. If the sacrifice also has enchantments, the enchantment cost is added on top — and the prior work penalties of both items are summed into the total. Sacrificing your old sword to repair your new one is therefore the expensive way to do it, even though it feels natural.
The order that keeps a god sword under 39#
Almost every “too expensive” case comes from doing the same things in the wrong order. The sequence that stays cheap:
- Start with a fresh item, not a used one. A brand-new diamond sword has a penalty of 0. A repaired one may already be at 3 or 7.
- Add enchantments as books, not by combining two swords. Books combine onto an item for less than item-to-item merging, and each book adds only one anvil use instead of importing the sacrifice’s penalty history.
- Rename it once, early. Naming costs 1 level; do it on an early operation so the item is identifiable in a chest, and never pay to rename it again.
- Leave the last, most expensive enchantment for last. Order the books from cheapest to most expensive so the penalty is still small while you are doing the costly operations.
- Do not partially repair between books. Each top-up is another anvil use. If you need a repair, batch it.
This is also the answer to “my friend’s sword has Sharpness V and mine can’t get it” — the difference is usually the number of anvil uses, not luck.
Resetting the counter: grindstone or crafting grid#
There are two ways to erase a prior work penalty, and they cost different things.
Grindstone: removes all enchantments and all prior work penalty, but keeps the item’s custom name. You get a clean, unnamed-enchant base with your name still on it. This is the tool for salvaging an item you have made expensive by accident.
Repairing in a crafting grid (two damaged copies of the same item): removes prior work penalty, enchantments, and the custom name. The item is a blank slate, including no name.
In practice: if an item has good enchants but a penalty of 15 or more, it is usually cheaper to grindstone it and re-enchant from books than to keep pushing it. You lose the enchants you had, so this is a decision for gear that has become unusable rather than gear that is merely expensive.
One incompatibility that causes the myth#
Infinity and Mending cannot be on the same bow. They are in the same incompatibility group, so the anvil refuses to combine them — a red X, not a cost problem. That is the origin of the “you can’t have both” rule, and it applies to the other groups too: Sharpness with Smite or Bane of Arthropods, Fortune with Silk Touch, the four protection types, Depth Strider with Frost Walker, Multishot with Piercing.
If you see a red X with no cost displayed, it is incompatibility, not the 39-level cap. If you see “Too Expensive!” with a number, it is the cap.
What this means for your next project#
The anvil rewards planning and punishes improvisation, which is why so many players end up with a chest of half-finished gear. Build one item deliberately: fresh base, books in ascending cost, rename once, batch repairs. The same logic applies if you are building the infrastructure around it — the gold farm that feeds your XP and the redstone builds that keep you supplied are what make expensive anvil work affordable in the first place.
Quick answers#
Why does my anvil say “Too Expensive!” at level 30? The operation costs more than 39 levels. Your character’s level is irrelevant — the cap is on the operation.
Does renaming reset the penalty? No. Renaming costs 1 level and pays the existing penalty, but does not add a use or remove the count.
What is the cheapest way to repair gear? Use it nearly to breaking, then repair with four units of material at once, or combine it with a freshly crafted copy.
How do I reset an item’s anvil cost? A grindstone removes enchantments and the penalty but keeps the name; repairing two damaged copies in a crafting grid removes the penalty, enchantments, and name.
Sources: Minecraft Wiki “Anvil mechanics” (prior work penalty table, 39-level cap, unit repair, grindstone behaviour).

4 comments