A coconut is obtained from a palm tree, which can be grown from a palm sapling in a fruit tree patch, provided that one has level 68 Farming. Players can pay a gardener a fee of 15 papayas to watch over the tree while it grows. A fully grown palm tree grows one coconut per 30 minutes up to a maximum of six per tree.

A hammer can be used on a coconut to create a half coconut, which can be used on an empty vial to gain coconut milk and a coconut shell. Coconut milk is needed for making certain high-level potions using the Herblore skill, such as antidote+, weapon poison(+), antidote++ and weapon poison(++); coconut shells can also be used to make supercompost. Players can pay 25 coconuts to a farmer to look after their growing magic tree.