A dress code on a party invitation is supposed to reduce anxiety and usually increases it, because the terms are vague, inconsistently used and often chosen by someone who was not sure either.

What follows is what each one means in practice in Britain, and the safe read when the instruction is genuinely ambiguous. The specific problem of what to wear to the office party is covered in the Christmas party outfit problem.

The codes, decoded

The instructionWhat it actually meansThe safe version
FestiveWear something you would not wear to workOne sparkling or velvet element, everything else plain
Black tieFormal: dinner jacket, or a long or dressy short dressTake it literally; this one is not vague
Black tie optionalFormal is welcome, not requiredDark suit or a cocktail dress; you will not be underdressed
CocktailShort and dressyKnee-length dress, or a suit without a tie
Smart casualNot jeans and trainers, not a suitTailored trousers, good knitwear, real shoes
Dress to impressThe host has no idea eitherWhatever you feel best in, pitched slightly up
No dress code statedAsk the hostMatch the venue rather than the season

The two that cause the most trouble

Festive is the vaguest and the most common. It does not mean novelty knitwear unless it is that kind of party, and it does not mean black tie. It means visible effort with something seasonal in it — a colour, a texture, a shine.

The reliable interpretation is one festive element and everything else restrained. A velvet blazer with plain trousers. A sequinned top with a plain skirt. Two festive elements start competing; three is a costume.

Black tie optional worries people because of the word optional. In practice it means the host will be in black tie and would like company, but nobody will comment if you are not. A dark suit or a cocktail dress is entirely correct and you will not stand out.

When the code and the venue disagree

The venue wins. A black tie instruction at a pub means someone chose the words for fun; a smart casual instruction at a hotel ballroom means someone was being modest.

If you can find out where it is, that is better information than the invitation. Match the room.

Which direction to err

When genuinely unsure, slightly overdressed is the safer error, but by less than people think. Being noticeably more formal than everyone else is its own kind of uncomfortable.

The practical hedge is an outfit whose formality you can adjust on arrival: a jacket that can come off, a tie that can be removed, jewellery that can go in a pocket. That converts the guess into a decision you make once you are in the room.

The one rule that holds everywhere

Whatever the code, the outfit has to survive the evening: sitting, eating, standing for hours, and being photographed under bad light.

An outfit that is technically correct and physically unbearable is worse than one pitched slightly wrong. Comfort is not the opposite of dressed up — it is what allows you to look dressed up at eleven o'clock rather than only at eight.

And if you are buying something for it, occasion wear carries an unusually wide price spread for similar garments because it is bought in a hurry. DUPI takes a photo of something you have seen and finds the closest matches at prices that are actually listed.