Wine is among the most common gifts and among the easiest to get slightly wrong. The usual failure is buying by price in an unfamiliar category, which produces an expensive bottle that the recipient may not like and cannot easily tell you about.
The better approach is to make the gift specific rather than merely generous, since specificity is what makes it feel considered.
If you know their taste
Buy the same style they already drink, one or two steps up in quality. Someone who enjoys New Zealand sauvignon blanc will appreciate a good Sancerre; someone who drinks Argentine malbec will appreciate a serious Cahors.
This is more useful than buying something entirely different, which risks the gift sitting unopened. It also demonstrates that you paid attention, which is most of the point.
Avoid buying an unfamiliar style as an educational gesture unless you know the person enjoys exploring, in which case it is exactly right.
If you have no idea
Three categories are close to universally safe.
Good champagne or English sparkling wine works for almost anyone, keeps indefinitely if not opened, and reads as generous without being obscure. A vintage bottle or a grower champagne makes it more interesting than the obvious brand.
Aged tawny port is an unusually good gift and rarely given. It needs no decanting, keeps for months once opened so there is no pressure to finish it, and a ten or twenty year old bottle is genuinely complex.
A magnum of something straightforward makes an occasion of itself. The format signals sharing rather than saving, and the wine ages more slowly in it.
Birth year bottles
A wine from someone's birth year is a lovely idea that frequently goes wrong, because most table wine from thirty or forty years ago is either dead or expensive.
The reliable solution is fortified wine. Vintage madeira from decades ago is often still in excellent condition, since the style is close to indestructible, and colheita port and vintage armagnac are both widely available across a long run of years at sensible prices.
If it must be table wine, buy from a merchant specialising in older bottles who can speak to provenance and storage, and accept that condition is a genuine risk.
Formats and presentation
Gift sets pairing a bottle with glasses or accessories are usually poor value, since the bottle inside is chosen to hit a price point rather than for quality. A better bottle without a box is nearly always the stronger gift.
Wine in a wooden case looks impressive and adds cost. A good independent merchant will wrap a bottle properly for nothing.
If the recipient is hosting, be clear whether the bottle is for them to keep or to open now. Handing over something serious as a host gift can create an awkward obligation to open it immediately, and saying that it is for later removes that entirely.
The safest route of all
Ask an independent merchant. Tell them the budget, what you know of the recipient, and the occasion, and let them choose. It takes five minutes, costs nothing extra, and produces a better result than an hour of supermarket deliberation.
A gift voucher from a good merchant is unfashionable and genuinely useful for anyone who takes wine seriously, since it lets them buy something specific rather than receiving something approximate.
What to avoid
Novelty bottles, wine with personalised labels and anything sold primarily on its packaging are almost always poor wine at a high price. The same applies to gift boxes containing miniature bottles of several things, which tend to be the least interesting expressions available.
Be careful with very expensive bottles for someone who does not drink much. A hundred pound wine given to a casual drinker frequently sits unopened for years and eventually gets drunk past its best, which serves nobody.
If they do not drink wine
Fortified wine is worth considering for anyone who drinks rarely, since a bottle of tawny port or madeira keeps for months after opening and can be enjoyed a glass at a time without any obligation to finish it. That is a more thoughtful gift than a table wine that must be drunk in an evening.