How to Enchant a Sword in Minecraft
Enchant swords with a table or books, then build the right mix on an anvil.
What sword enchantments do
To enchant a sword in Minecraft, use an enchanting table or combine an enchanted book and sword on an anvil. The table needs lapis lazuli and experience levels. An anvil lets you apply books and combine gear. Both methods can add damage or useful combat effects.
Each enchantment changes how a sword works. Sharpness raises damage against most foes, while Fire Aspect sets targets alight. Some effects work only against certain enemy types. Your choice depends on what you fight and how you play.
The sword material does not set the highest enchantment level by itself. A wood sword and a diamond sword can both use an enchanting table. Yet stronger swords have more base damage and last longer. Enchantment options depend on your setup and available levels.
- Table: Offers random enchantment choices for a sword.
- Book: Stores an enchantment for later use on an anvil.
- Anvil: Applies books or merges enchanted items for a level cost.

Enchant a sword with an enchanting table
First, craft a table with four obsidian, two diamonds, and one book. Place it, then add lapis lazuli and your sword. The table shows three options, each with a level requirement. You need enough experience levels to choose one.
For the strongest table choices, place up to 15 bookshelves around the table. Keep one empty block of space between the shelves and table. More shelves unlock higher-level choices, but they do not promise a certain enchantment. The offered enchantments remain random.
Choose a listed option to spend lapis and experience. The sword gains the shown enchantment, and the other choices change. The top option costs fewer levels. A higher option can give stronger or more enchantments, but it costs more.
- Put the table on a flat spot with room for shelves.
- Set up as many as 15 bookshelves, with a one-block gap.
- Place the sword and lapis in the table slots.
- Pick an option you can afford, then check the result.
You need lapis even when you have enough experience. Keep a small supply nearby before enchanting. If you want a specific effect, a book and anvil may give you more control.

Enchant a sword with a book
To enchant a sword in Minecraft with a book, place both items in an anvil. Put the sword in the first slot and the enchanted book in the second. The anvil shows the result and its level cost. Take the sword if you have enough levels.
Enchanted books come from several sources, including chests, fishing, trades, and table use. A book can hold one or more enchantments. Check its details before using it. The book's enchantments must be allowed on the sword.
You can combine books before applying them. Place two compatible books in an anvil to create one book with both effects. This can help shape a sword with several useful traits. Each anvil use costs levels, and the cost can rise with prior work.
Some enchantments cannot share one sword. Sharpness, Smite, and Bane of Arthropods conflict with each other in standard survival play. Choose one of these damage types. You can still pair a chosen one with effects such as Looting or Unbreaking.

Choose the right sword enchantments
Sharpness is a broad pick because it boosts damage against most foes. Smite deals more damage to undead enemies, such as zombies and skeletons. Bane of Arthropods targets arthropod foes, such as spiders. These three serve different needs, so choose based on your usual fights.
Fire Aspect lights targets on fire and can add damage over time. Looting can increase drops from foes you defeat. Unbreaking helps a sword last longer, while Mending repairs it using experience orbs. Knockback pushes foes away, which can help with spacing or get in your way.
| Enchantment | What it does | Good fit |
|---|---|---|
| Sharpness | Raises damage against most foes | General use |
| Smite | Raises damage against undead foes | Undead fights |
| Bane of Arthropods | Raises damage against arthropods | Spider-heavy areas |
| Fire Aspect | Sets targets on fire | Extra damage over time |
For a general-use sword, pair Sharpness with Looting and Unbreaking. Add Mending if you want to repair it with collected experience. For undead foes, swap Sharpness for Smite. A single sword cannot hold every damage enchantment.

Get more from each enchantment
Plan your sword before spending levels. Decide whether you want broad damage, undead damage, or a tool for another foe type. Then look for books that support that goal. This avoids paying for enchantments you will rarely use.
Bookshelves improve the table's available options, but the table still picks enchantments at random. If the choices are poor, enchant a cheaper item or book to refresh them. Check the next table choices before spending your last lapis or levels.
Use an anvil to add books in a sensible order and track the cost shown. Merge like books first when that reduces the number of separate steps. Keep a spare copy of a rare book until you know the result. Once an anvil cost is too high, that item may no longer be practical to upgrade in survival mode.
Repairing can also affect the cost of future anvil work. Mending can reduce the need for anvil repairs when you collect experience. Keep the sword equipped while gathering or fighting, so the repair effect can use those orbs.
Fix common sword enchanting problems
If the table shows no usable option, check for lapis and enough levels. Also make sure the sword sits in the right slot. If you use shelves, remove any blocks between them and the table. The gap must stay clear for their effect.
If an anvil says the book cannot be used, its enchantment may not apply to swords. It may also conflict with an enchantment already on the weapon. Review the book and sword before spending levels. Try a different book if the effects clash.
An anvil cost can be higher than your current level total. Gain more experience, or try a different order of book merges. If the cost reads too high, you may need another sword and a fresh plan. Table results are random, so a book is often the better route for a specific build.
When the result lacks an expected effect, check the item description again. An enchantment may have a different purpose than its name suggests. Match the sword to the foes you face, then keep useful books for later upgrades.
Step-by-step
- 01 Choose a method
Use a table for random options, or gather an enchanted book for a specific effect.
- 02 Get the needed supplies
For a table, bring a sword, lapis lazuli, and enough experience levels. For a book, bring the sword and book to an anvil.
- 03 Enchant the sword
Use the table option you want, or place the sword and book in the anvil. Check the level cost before taking the result.
- 04 Add compatible effects
Merge useful books on an anvil, but avoid conflicting damage types. Keep an eye on the cost after each merge.
Frequently asked questions
- How do you enchant a sword in Minecraft?
- Use an enchanting table with a sword, lapis lazuli, and enough experience levels. Or place an enchanted book and sword in an anvil.
- How do I enchant a sword in Minecraft with a book?
- Put the sword in an anvil's first slot and an enchanted book in its second slot. Take the result if you have enough levels and the enchantment can apply.
- How many bookshelves do I need for the best enchantments?
- Use up to 15 bookshelves around the table, with one clear block between them and the table. This unlocks the highest table options, but results remain random.
- Can Sharpness, Smite, and Bane of Arthropods go on one sword?
- No. These damage enchantments conflict in standard survival play, so choose the one that suits your targets.
- Can I combine enchanted books in Minecraft?
- Yes. Use an anvil to combine compatible books, then apply the result to a sword. The anvil shows the level cost before you take the item.
Related reading
How to Make Chainmail Armor in Minecraft
Chainmail has no Survival recipe. Find it, trade for it, and repair it with an anvil.
How to Get Wheat Seeds in Minecraft
Find seeds in tall grass, plant them near water, then harvest wheat and more seeds.
How to Unblock Someone on Minecraft Bedrock
Find the blocked list, remove a player, then check that contact is restored.