Minecraft wiki entry for Experience_farming, associated text: Each trade (both selling stuff for emeralds, and buying the bottles) will also grant an average of 4.5 XP to the player, 5 extra if the villager would be willing to breed. This means that rather more experience will be gained in the trading than stored in the bottles!