Beans are currency used in the player-owned farm. They can be exchanged for certain animals, items, and unlocks at the Farmers' Market. 500 are initially obtained during the tutorial at Manor Farm. They can be stored in the currency pouch, however they can not be withdrawn once added.
At level 120 Farming, an additional 500 beans (total: 600) are given by Granny Potterington.
At 200M Farming experience, an additional 1000 beans (total: 1600) are given Granny Potterington.
VIP members for 2018 receive 500 free beans from the VIP area at the Grand Exchange.
To obtain more beans past these, the player must sell animals to their respective buyers. Depending on the size of animal the npc is buying, they will appear and stay for different lengths of time. It is recommended to force the particular buyer you want to appear by placing those animals in pens before the reset happens.