There are ten patches of soft soil in Ocarina of Time and ten Magic Beans to plant in them. Plant a bean as young Link, then come back as adult Link and the bean has grown into a flying leaf platform that carries you somewhere you couldn't reach before. Six of the ten lead to a Piece of Heart or a Gold Skulltula.
Quick answers
Where do I buy Magic Beans? From the Bean Salesman on the west side of Zora's River, as young Link. The first costs 10 Rupees and each one after that costs 10 more, up to 100 for the tenth: 550 Rupees for all ten, so you'll need the Adult's Wallet.
Which beans matter? The ones at the Dodongo's Cavern entrance, Kakariko Graveyard, Lake Hylia, Death Mountain Crater and the Desert Colossus each lead to a Piece of Heart. The deep Lost Woods one leads to a Gold Skulltula.
Bonus Gold Skulltulas: as young Link, drop a bug from a Bottle onto nine of the ten patches (every one except Zora's River) and a Gold Skulltula pops out. You can do this before or after planting.
Beans planted: 0 / 10
Tick each patch once you've planted a bean in it. Your ticks are saved in this browser only.
Zora's River, next to the Bean Salesman
Where: right beside the salesman on the west side of the river.
Rewards: no Gold Skulltula here, and no prize needs the adult plant, so this is a good spot to try a bean out.
Kokiri Forest, behind the shop
Where: behind the Kokiri Shop, where you bought the Deku Shield.
Rewards: young Link: bugs for a Gold Skulltula.
Lost Woods, near the bridge
Where: enter the Lost Woods and turn left to find a Skull Kid on a stump; go through the hollow log beyond him. You can see the bridge into Kokiri Forest from here.
Rewards: young Link: bugs for a Gold Skulltula.
Lost Woods, near the Forest Stage
Where: from the entrance, go right, left, right, left, left to reach the clearing with two Business Scrubs; the soil is behind one of them.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link, at night: ride the plant up to another Gold Skulltula.
Kakariko Graveyard
Where: walk to the first row of graves, turn left to the wall, then left again to the end of the row.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link: ride the plant to the ledge above and roll into the crate for a Piece of Heart.
Dodongo's Cavern entrance
Where: just inside the entrance on Death Mountain Trail, once you've blown it open with a Bomb Flower.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link: ride the plant to the Piece of Heart on top of the cavern entrance.
Lake Hylia, by the Lakeside Laboratory
Where: by the door of the tall laboratory near the lake entrance.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link: ride the plant (or call Pierre the scarecrow) to the lab roof and climb the ladder for a Piece of Heart.
Death Mountain Crater
Where: next to the warp pad. Young Link can only get here by playing the Bolero of Fire, so learn it as an adult first, then return the Master Sword to its pedestal. The heat is a race against the clock, so plant quickly.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link: ride the plant to the top of the first smoking pillar for a Piece of Heart.
Gerudo Valley, on the riverbank
Where: grab the Cucco and float down to the riverbank below the big bridge; the soil is on the ledge with a Gerudo and a cow.
Rewards: young Link: bugs for a Gold Skulltula.
Desert Colossus, outside the Spirit Temple
Where: just outside the Spirit Temple entrance. Young Link gets here with the Requiem of Spirit.
Rewards: young Link: bugs for a Gold Skulltula. Adult Link: ride the plant to the Piece of Heart on top of the rock arch, and, at night, a Gold Skulltula on the second rocky mound it passes.