For years, sheep and beef farmers were the eternal optimists of New Zealand's countryside — the ones who found a silver lining in every cyclone, every drought, every wobbling wool price. But a new survey has dethroned them. Now the country's most confident rural workers are the people who grow kiwifruit, apples, avocados and grapes.

The finding comes from a Rabobank survey run by the research agency Kantar, which quizzed 450 farmers and orchardists across the country last August. The big takeaway: rural confidence is holding steady. Just over half of those polled expect the farm economy to hold its course or improve in the year ahead. And for the first time, horticulture has overtaken sheep and beef as the most bullish corner of the rural world.

So why the sudden optimism from orchards and vineyards? Horticulturalists are riding a hot streak of strong commodity prices for their fruit, and many are seeing steady demand both at home and overseas. It is a quiet vote of confidence in an industry that has quietly become one of New Zealand's biggest export earners, shipping apples and kiwifruit to supermarkets from Shanghai to Los Angeles.

But there is a shadow over the sunny mood. Across every sector, farmers told surveyors that rising input costs — the price of fuel, fertiliser, feed and labour — are weighing on them more heavily than the good prices they are getting for their products. In other words, the money flowing in is being eaten up by the money flowing out. It is the same squeeze consumers feel at the supermarket till, playing out on a much larger scale on farms.

That tension matters beyond the farm gate. New Zealand's primary sector is the engine room of the national economy, with sheep, beef, dairy, horticulture and forestry together accounting for a huge share of exports. When farmers feel confident, they invest — in new plantings, new machinery, new technology — and that spending ripples through small towns and rural communities. When they tighten their belts, the whole country feels it.

Horticulture's new top spot is more than a statistic. It signals a quiet shift in the landscape of New Zealand farming, as high-value orchards and vineyards gain ground alongside the traditional sheep stations and cattle blocks that have defined the country's image for a century. The question now is whether those fruit growers can keep their confidence up if input costs keep climbing.

For now, the orchards are smiling. And in a year when every dollar counts, that is a harvest worth celebrating.