The US Flag Code: rules for displaying the American flag
Published Written by Flagpole Guides

The United States Flag Code is the part of federal law that describes how the flag of the United States is displayed and treated. It is found in 4 U.S.C. §§ 4–10 and goes back to a joint resolution of Congress of June 22, 1942, amended later that year and in 1976. In 1998, the rules were moved from title 36 to title 4 of the United States Code, where they sit next to the description of the flag itself in §§ 1–2.
A guide, not a penal law

According to § 5, the Flag Code is a “codification of existing rules and customs” for civilians and civilian groups that are not bound by the regulations of a federal department. The Congressional Research Service (CRS) notes that the Code prescribes no penalties and contains no enforcement provisions, that courts have found it “declaratory and advisory”, and that no federal agency can issue official rulings binding on civilians. Its general rule is in § 8: “No disrespect should be shown to the flag of the United States of America.” According to the CRS, practices that the Code does not mention can be tested against that rule.
Federal agencies and the armed forces follow regulations of their own. Under § 10, the President can alter, modify or add to the rules by proclamation.
What the Flag Code covers
| Section | Subject |
|---|---|
| § 4 | The Pledge of Allegiance and how it is rendered |
| § 5 | Who the Code is for |
| § 6 | Time and occasions for display: hours, weather, flag days, schools and polling places |
| § 7 | Position and manner of display: other flags, walls, streets, vehicles, half-staff and caskets |
| § 8 | Respect for the flag: what the flag is never used for |
| § 9 | Conduct while the flag is raised, lowered or passing |
| § 10 | Changes by the President |
Hours, weather and lighting
- Sunrise to sunset: under § 6(a), it is “the universal custom” to display the flag only from sunrise to sunset on buildings and on stationary flagstaffs in the open.
- At night: when a patriotic effect is desired, the flag may be displayed 24 hours a day if it is properly illuminated during the hours of darkness. More in the guide to flag lighting.
- Raising and lowering: the flag is hoisted briskly and lowered ceremoniously (§ 6(b)).
- Weather: the flag is not displayed on days when the weather is inclement, except when an all-weather flag is displayed (§ 6(c)). According to the CRS, the section does not suggest lowering the flag during brief showers on an otherwise fair day.
Respect for the flag
Section 8 lists what the flag is never used for. Among other things, the flag:
- is not dipped to any person or thing; regimental colors, state flags and organization flags are dipped as a mark of honor
- is not displayed with the union down, except as a signal of dire distress
- does not touch anything beneath it, such as the ground, the floor, water or merchandise
- is not used as wearing apparel, bedding or drapery, and is always allowed to fall free; red, white and blue bunting, with blue at the top, is used for decoration instead
- is not fastened, displayed or stored in a way that lets it be easily torn, soiled or damaged
- has nothing placed on it, such as marks, letters, words or pictures
- is not used for advertising or printed on items designed for temporary use and discard
- is not used as a costume or athletic uniform, although a flag patch may be worn on the uniforms of military personnel, firefighters, police officers and members of patriotic organizations
Since a 2024 amendment, § 8(c) also allows the flag to be carried flat or horizontally in limited circumstances, when done respectfully as part of a military or patriotic observance.
Retiring a worn flag
Under § 8(k), a flag that is “no longer a fitting emblem for display” is destroyed in a dignified way, preferably by burning. According to the CRS, the Code says nothing about the procedure, and any procedure in good taste that shows no disrespect would seem appropriate. According to the Department of Veterans Affairs, veterans service organizations accept flags in any condition and retire those that are unserviceable. Local rules on open burning can apply to a flag burned at home.
Conduct during the flag ceremony
Under § 9, while the flag is raised or lowered, or passes in a parade, persons in uniform render the military salute, and members of the armed forces and veterans not in uniform may do the same. All others face the flag and stand at attention with the right hand over the heart, removing any headdress with the right hand and holding it at the left shoulder. Citizens of other countries stand at attention.
Flag desecration and the courts
A separate federal criminal statute once punished desecration of the flag. In Texas v. Johnson (1989), the Supreme Court held that a state law against flag desecration was unconstitutional as applied to a political protest, and in United States v. Eichman (1990) it held the same of the federal Flag Protection Act of 1989 as applied to burning the flag in a public protest. Executive Order 14341 of August 25, 2025 directs the Attorney General to prioritize prosecuting flag desecration that violates content-neutral laws, such as laws on violent crime, property damage or open burning, and to refer possible violations of state or local law to the states.
Related rules

The days on which the flag is especially displayed are in the guide to flag days, half-staff in the guide to half-staff, and the position of the flag among other flags in the guide to flag etiquette. How far a homeowners’ association can restrict the flag is covered in the guide to flags in HOA communities.
Frequently asked questions
Is it illegal to break the US Flag Code?
No penalty is set out in the Flag Code for displaying the flag in a manner other than as it suggests. According to the Congressional Research Service, courts have held that the Code is declaratory and advisory, and it functions as a guide to be followed voluntarily by civilians and civilian groups. Some states have flag laws of their own, and the VA’s flag display guidelines note that states may impose penalties.
Can the American flag be flown at night?
Yes. Under 4 U.S.C. § 6(a), it is the universal custom to display the flag only from sunrise to sunset, but when a patriotic effect is desired, the flag may be displayed 24 hours a day if properly illuminated during the hours of darkness.
Can the flag be flown in the rain?
The Flag Code states that the flag should not be displayed on days when the weather is inclement, except when an all-weather flag is displayed. According to the Congressional Research Service, it is not considered disrespectful to fly an all-weather flag of synthetic fabric even in prolonged bad weather.
What happens to a flag that touches the ground?
The Flag Code states that the flag should never touch anything beneath it, such as the ground, the floor, water or merchandise. It says nothing about destroying a flag that has touched the ground; under § 8(k), a flag is destroyed in a dignified way, preferably by burning, when it is in such condition that it is no longer a fitting emblem for display.
Is flag burning illegal in the United States?
In Texas v. Johnson (1989) and United States v. Eichman (1990), the Supreme Court held that burning the flag as political protest is protected by the First Amendment. Executive Order 14341 of August 25, 2025 directs the Attorney General to prosecute flag desecration that violates content-neutral laws, such as laws on violent crime, property damage or open burning.
Sources
This guide is based on the following sources:
- 4 U.S.C. chapter 1 – The Flag, 2024 edition – U.S. Government Publishing Office
- The United States Flag: Federal Law Relating to Display and Associated Questions (RL30243) – Congressional Research Service
- Guidelines for Display of the Flag – U.S. Department of Veterans Affairs
- Executive Order 14341 – Prosecuting Burning of the American Flag – The White House
- The American flag and other national symbols – USAGov, U.S. General Services Administration
Related guides
- Flag daysThe days on which the US Flag Code calls for the flag to be displayed in 2026 and 2027, with the half-staff days and the federal holidays.
- Half-staffWhy US flags fly at half-staff (half-mast): who orders it, where the orders are published, the periods set by law and the half-staff dates in 2026 and 2027.
- Flag etiquetteWhere the American flag goes among other flags under 4 U.S.C. § 7: the position of honor, flags on one halyard, walls, windows, stages and the anthem.
- Flag lightingWhen the US flag can fly at night under the Flag Code, what “properly illuminated” means in practice, solar and wired lights, and local and HOA lighting rules.
- Flags in HOA communitiesWhat an HOA can and cannot restrict about the American flag and flagpoles under the federal flag act and the laws of Texas, Florida, Arizona and California.