What is a squawk code? Squawk 7700 and the rest
A squawk code is the four-digit code a pilot sets on the aircraft's transponder, so air traffic control can tell it apart on the display. Squawk 7700 is the one everybody has heard of, and the rule behind it says only that the aircraft is in a state of emergency. It names no cause.

What squawk 7700 means
The UK's rule on transponder code setting, SERA.13005, tells a pilot to "select Code 7700 to indicate a state of emergency", unless air traffic control has already directed the pilot to use a particular code. Even then, a pilot may select 7700 "whenever there is a specific reason to believe that this would be the best course of action".
That is the whole definition. The code doesn't say which kind of emergency it is, and it doesn't predict how the flight ends. Reading a crash into it goes beyond what the rule says.
7500, 7600 and 7700: the three contingency codes
The same rule sets three codes for specific contingencies. 7700 is a state of emergency. 7600 is a radio-communication failure. 7500 is unlawful interference, and there the wording is softer: the pilot should "attempt to select Code 7500", with 7700 used instead if circumstances warrant it.
Everyday codes: 7000, 2000 and what controllers assign
Outside those cases the code usually comes from the controller. SERA.13005 has the pilot select the code the air traffic service unit instructs. With no instructions the pilot selects 2000 or another code the authority prescribes, and when not receiving an air traffic service, 7000, "in order to improve the detection of suitably equipped aircraft". The UK AIP's section ENR 1.6 gives 7000 as the VFR conspicuity code and 2000 as the IFR one, and lists the further special-purpose codes. That is the June 2026 edition, and later editions can change the codes, so check the current one before relying on a code from here.
What happens when the code is wrong
If the code on the controller's display differs from the one assigned, SERA.13005 says the pilot is asked to confirm the code selected and, if the situation warrants it, to reselect the correct one. If the mismatch persists, the pilot may be asked to stop operating the transponder.
Why an emergency might not appear as 7700
The UK AIP's section ENR 1.6 allows an aircraft already on a discrete code and receiving a service to keep that code in an emergency. Watching for 7700 alone, then, won't catch every emergency.
Listening squawks
Near controlled airspace, a pilot who isn't receiving a service is encouraged to select a Frequency Monitoring Code instead of 7000 or 2000. The CAA calls it colloquially a listening squawk: it indicates that the aircraft is monitoring that unit's frequency, so the controller can contact it quickly if it's about to infringe. The CAA is plain about the limit, saying there "can be no guarantee that you will always be warned".
Where squawk codes fit in a spotter's notes
A squawk is a code the pilot chooses or is given, so it sits beside the other identifiers rather than replacing them. The aircraft identification guide covers the registration, type code and callsign, spotting equipment and apps covers what people use to watch traffic, and what plane spotting is explains the hobby itself. The rest of the reading is in the sky. If you've photographed the aircraft behind a code, the aircraft print turns the picture into something for the wall.
