Minecraft villager trading calculator and trade optimizer
An advanced villager trading optimizer for Minecraft Java Edition 1.21+. Browse the trades of all 13 professions across 5 levels, search for a specific item among hundreds of trades, compare how efficiently each trade earns emeralds, and work out the discounts from curing a zombie villager and from the Hero of the Village effect. It runs in your browser, no install needed.
Buys crops (wheat, potatoes, carrots, beetroots) and sells food. The most efficient way to earn emeralds from automatic farms.
How villager trading works in Minecraft
Villagers are some of the most important NPCs in Minecraft. Every villager with a profession offers its own set of trades that let you swap resources for emeralds and the other way around. To start trading, just right-click the villager and the trade window opens with the available offers.
Trading is one of the most powerful systems in the game. It gets you items you can't craft on a crafting table (such as the Mending enchantment), lets you buy diamond gear with emeralds instead of mining diamonds, and gives you a renewable source of ender pearls, which you need to reach the End.
Trading gets even better when you pair it with automatic farms. A carrot or potato farm combined with a Farmer is a practically endless source of emeralds, and you can spend those emeralds with any other villager on diamond tools, armor or enchanted books.
The 13 villager professions
A villager can take one of 13 different professions in Minecraft. Each profession is tied to a specific workstation. When you place a workstation next to a villager without a profession, the villager automatically takes the matching profession and starts offering trades. Here is the full list:
- Farmer (Composter): food, buys crops
- Fisherman (Barrel): fish, fishing rods, buckets of fish
- Shepherd (Loom): wool, dyes, paintings
- Fletcher (Fletching table): bows, crossbows, arrows
- Cleric (Brewing stand): ender pearls, bottles o' enchanting, brewing materials
- Armorer (Blast furnace): iron, chainmail and diamond armor
- Toolsmith (Smithing table): pickaxe, axe, shovel, hoe
- Weaponsmith (Grindstone): swords, axes
- Cartographer (Cartography table): explorer maps
- Librarian (Lectern): enchanted books, lanterns, glass
- Leatherworker (Cauldron): leather armor, saddles
- Butcher (Smoker): raw and cooked meat
- Mason (Stonecutter): decorative blocks, terracotta, quartz
There is also the Nitwit, a villager in a green robe who never takes a profession and doesn't trade. Nitwits have no practical use beyond decorating a village.
Villager levels (5 levels)
Every villager starts as a Novice (level 1) and can rank up to Master (level 5). A villager levels up once it has earned enough XP from trades and is standing at its workstation. Higher levels unlock better, rarer trades.
- Novice (0 XP): 2 starting trades, basic offers
- Apprentice (10 XP): new trades, slightly better offers
- Journeyman (70 XP): specialized trades, access to rarer materials
- Expert (150 XP): diamond items, valuable materials
- Master (250 XP): the best trades, unique items
A villager earns XP from every trade. The amount depends on the trade, and more expensive trades usually give more XP. To level up, the villager needs access to its workstation. The level-up usually happens right after the required XP is reached, as long as the workstation is in range.
Resetting a villager's profession to get the trades you want
One of the most important techniques in the game is resetting a Librarian's trades to get a specific enchantment (such as Mending) at the very first level. Here is how:
- Place a lectern next to a villager without a profession and it becomes a Librarian
- Check which enchantment it offers at the first level
- If it's not the enchantment you want, break the lectern
- The villager loses its profession (it goes back to the brown robe)
- Place the lectern again and the villager takes the profession again, with new random trades
- Repeat until the enchantment you want shows up
Note: Resetting only works if you haven't traded with the villager even once. After the first trade the profession is locked in for good, and even breaking the workstation won't change its offers. That is why you should check the trades before the first one.
Zombie villagers: curing and discounts
One of the most effective ways to bring prices down is to cure a zombie villager. When a zombie kills a villager on Normal difficulty (50% chance) or Hard (always), the villager turns into a zombie villager. You can cure it by throwing a splash potion of Weakness at it and feeding it a golden apple.
Once cured, the villager permanently lowers prices for the player who cured it, provided it had a profession before it turned into a zombie. The size of the discount depends on the offer, and for many trades the price drops as low as 1 emerald. Only the first cure counts: since Java 1.20.2 and Bedrock 1.20.30, further cures of the same villager no longer lower prices.
How to cure a zombie villager
- Pick a villager that already has a profession, because only those give a discount once cured
- Let a zombie infect it (on Hard this always works, on Normal about half the time)
- Throw a splash potion of Weakness at the zombie villager
- Feed it a regular golden apple (an enchanted one doesn't work)
- Wait 3-5 minutes for the cure to finish
Tip: You only need to cure each villager once. Further infections and cures don't give an extra discount. In Bedrock Edition, villagers within 16 blocks of the cured one also get a smaller discount.
Hero of the Village effect: an extra discount
After you defend a village from a raid, you get the Hero of the Village effect for 40 minutes (game time). During that time, all villager prices are reduced by about 30% (depending on the effect level). Importantly, this effect stacks with the discount from curing a zombie villager, so with a cured villager and Hero of the Village active, many prices drop to the minimum of 1 emerald.
The calculator accounts for both kinds of discounts at once. Turn on both controls in the discount section to see the final prices after the double reduction.
Must-have villagers
- Librarian: an absolute must-have. It is the only villager that sells enchanted books, including Mending, which repairs your items with XP. Without Mending you have to craft new tools every so often. With Mending, one tool lasts the whole game.
- Farmer: the easiest source of emeralds. Build an automatic carrot or potato farm and sell the crops. A single Farmer can handle hundreds of emeralds a day.
- Armorer: diamond armor for emeralds, no diamond mining needed. At Expert and Master levels it sells enchanted diamond armor pieces.
- Toolsmith: the same idea as the Armorer, but for tools. An enchanted diamond pickaxe at Master level saves a huge amount of time.
- Cleric: at Expert level it can sell ender pearls, so you don't have to hunt Endermen. You need them for eyes of ender, which lead you to the stronghold and the End portal. At Master level it also sells bottles o' enchanting.
Building an optimal trading hall
To get the most out of trading, build a dedicated trading hall. Here is a layout that works:
- Build an enclosed corridor with 1x1 cells for the villagers (a bed plus a workstation in each)
- Put the Farmers next to an automatic carrot/potato farm
- Add a Librarian with Mending at the first level
- Add an Armorer and a Toolsmith for diamond gear
- Add a Cleric for ender pearls
- Protect the village from zombies (lighting, fencing)
The key rule: a villager needs access to its workstation (it can just stand next to it) and a bed (it can sleep in it) to restock its trades and level up. Trades restock twice a day (morning and evening of the game day) while the villager is at its workstation.
Advanced tips for getting the most out of trading
Demand and supply: dynamic prices
Prices in Minecraft Java Edition change dynamically. If you keep buying the same item, its price goes up (the demand mechanic). If you stop buying it for a while, the price returns to normal. That is why it is worth trading with several villagers of the same profession instead of wearing out a single one.
Nitwit vs. unemployed villager
A Nitwit (green robe) never takes a profession, no matter which workstations are nearby. An unemployed villager (brown robe) takes a profession when it ends up next to a free workstation. Don't mix the two up: Nitwits can't be “fixed”.
How to use the optimizer
The calculator has four views. Browse professions lets you pick a profession and see all of its trades across the 5 levels. Search item searches every trade for a specific item: type something like “Diamond”, “Ender pearl” or “Bread” and see who sells it cheapest. Best trades shows a ranking of the most profitable trades. Efficiency is the full ranking of emerald earners across all professions.
Frequently asked questions
How do you trade with a villager in Minecraft?
Right-click a villager that has a profession (not a nitwit). The trade window opens, where you can swap items for emeralds or the other way around. The villager needs an assigned workstation to restock its trades.
How do you give a villager a profession?
Place a workstation next to a villager without a profession (brown robe). The villager walks over to it and takes the matching profession. Each workstation matches a different profession: lectern = Librarian, blast furnace = Armorer, composter = Farmer, and so on.
How do you reset a villager's trades?
Break the villager's workstation and place a new one. The villager loses its profession and gets a new one with random trades. Note: this only works at Novice level (1). If you have traded with the villager even once, its profession is locked in for good.
How does the discount from curing a zombie villager work?
When you cure a zombie villager (with a potion of Weakness and a golden apple), the villager permanently lowers prices for the player who cured it, provided it had a profession before it turned into a zombie. Only the first cure counts: since Java 1.20.2 and Bedrock 1.20.30, further cures of the same villager give no extra discount.
What does the Hero of the Village effect do?
After you defend a village from a raid, you get the Hero of the Village effect for 40 minutes. All villager prices are reduced by 30-55%. The effect stacks with the discount from curing a zombie villager, which adds up to huge savings.
Which villager is the most important in Minecraft?
The Librarian is widely considered the most important villager because it is the only one that sells enchanted books, including Mending. Other key professions are the Armorer (diamond armor), Toolsmith (diamond tools), Farmer (easy emeralds) and Cleric (ender pearls).
How many villager professions are there in Minecraft?
Minecraft has 13 villager professions: Farmer, Fisherman, Shepherd, Fletcher, Cleric, Armorer, Toolsmith, Weaponsmith, Cartographer, Librarian, Leatherworker, Butcher and Mason. There is also the Nitwit, which does not trade.
What is the most efficient way to get emeralds?
The most efficient source of emeralds is an automatic crop farm (carrots, potatoes, wheat) plus a Farmer. Build the farm, harvest the crops and sell them to the Farmer. Other good sources: sticks to a Fletcher, paper to a Librarian, clay to a Mason, raw porkchop to a Butcher.