The short answer
The rules for the American flag are set out in the U.S. Flag Code. In brief, the code asks people to:
- fly the flag from sunrise to sunset, or around the clock if it is properly lit at night
- give it the position of honor when it flies with other flags
- display the blue field of stars (the union) at the top and to the observer’s left when it hangs flat
- keep it from touching the ground or anything beneath it
- avoid using it as clothing, bedding, decoration or advertising
- never fly it upside down except as a signal of dire distress
- retire a worn-out flag in a dignified way, preferably by burning
The rest of this guide explains each of these in more detail, along with what the code says about conduct during the pledge and anthem.
Where the rules come from
The Flag Code grew out of a National Flag Conference held in Washington, D.C., in 1923, where veterans’ and civic groups drafted a set of etiquette guidelines. Congress adopted a version of those guidelines into law in 1942. Today, the core of the code sits in Title 4, Chapter 1 of the United States Code, and the rules for conduct during the national anthem are in Title 36.
For private citizens, the code is best read as official guidance on etiquette. It describes the respectful way to handle the flag, and many organizations, schools and government offices follow it closely.
When to fly the flag
Sunrise to sunset, or lit at night
The standard custom is to display the flag on buildings and outdoor flagpoles from sunrise to sunset. The code allows it to fly 24 hours a day if it is properly illuminated during darkness, which is why many homes and businesses use a small spotlight aimed at the pole.
The flag should be hoisted briskly and lowered ceremoniously.
Weather
The code says the flag should not be displayed in inclement weather unless it is an all-weather flag. Most flags sold for outdoor use today are made of nylon or polyester and are marketed as all-weather, but strong storms can still damage them.
Days the code singles out
The flag can be flown on any day, but the code lists days when it is especially encouraged. These include New Year’s Day, Inauguration Day, Presidents’ Day, Memorial Day, Flag Day (June 14), Independence Day, Labor Day, Constitution Day, Veterans Day, Thanksgiving and Christmas, among others, plus state holidays and days proclaimed by the President.
Memorial Day has a special custom: the flag is flown at half-staff until noon, then raised to the top of the pole for the rest of the day.
How to display it
On a pole with other flags
When the U.S. flag flies with state, city or organizational flags, it goes at the center and highest point of the group, or at the observer’s far left in a line. On a single pole with other flags, it goes at the top. It should be raised first and lowered last.
When flags of other nations are flown together with it, each should be on a separate pole of the same height, and the flags should be about the same size. In peacetime, the code says one nation’s flag should not be displayed above another’s.
On a wall, in a window or over a street
When the flag is displayed flat, horizontally or vertically, the union should be at the top and to the flag’s own right, which is the observer’s left. In a window, it should be hung so the union is at the upper left as seen from the street.
When the flag hangs vertically across a street, the union should face north on an east-west street, or east on a north-south street.
On a speaker’s platform, a flag displayed flat should be above and behind the speaker. If it is on a staff, it goes to the speaker’s right as they face the audience.
For more practical tips, including hardware and mounting, see our guide on how to hang a flag correctly on a wall or pole.
At half-staff
To fly the flag at half-staff, raise it to the top of the pole for a moment, then lower it to the half-staff position. Before lowering it for the day, raise it to the top again. Half-staff periods are ordered by the President, and governors may order them for their states. Our article on why are flags at half mast covers the custom and its origins.
On a casket
When the flag covers a casket, the union goes at the head and over the left shoulder of the deceased. The code says the flag should not be lowered into the grave or allowed to touch the ground. We explain this in more detail in what must never happen to the flag on a casket.
Treating the flag with respect
Section 8 of the Flag Code lists the ways the flag should and should not be treated. The main points are:
- The flag should not be dipped to any person or thing.
- It should never be displayed with the union down, except as a signal of dire distress.
- It should never touch anything beneath it, such as the ground, the floor, water or merchandise.
- It should not be carried flat or horizontally, but aloft and free.
- It should not be used as clothing, bedding or drapery. Red, white and blue bunting is suggested for decoration instead, with blue at the top.
- It should not be used for advertising, printed on items meant to be thrown away such as paper napkins, or have any mark, word or picture placed on it.
- It should not be used to hold or carry anything.
The code allows a flag patch on the uniforms of military personnel, firefighters, police officers and members of patriotic organizations. It also says a flag lapel pin, as a replica, should be worn on the left lapel near the heart.
Our article on three things you should never do out of respect to the flag looks at the most common mistakes.
Conduct during the anthem, pledge and passing colors
When the flag is being raised or lowered, or passes in a parade, the code asks people to face it and stand at attention. Those in uniform give the military salute. Members of the armed forces and veterans who are not in uniform may also give the military salute. Other people place their right hand over their heart, and men remove their hats.
The Pledge of Allegiance is said standing at attention, facing the flag, with the right hand over the heart. Similar conduct is expected during the national anthem when the flag is displayed.
Retiring a worn-out flag
The code says that when a flag is so worn that it is no longer a fitting emblem for display, it should be destroyed in a dignified way, preferably by burning. Many American Legion posts, VFW posts and scout troops hold retirement ceremonies, often on Flag Day, and some accept old flags dropped off by the public. Since many modern flags are made of synthetic fabric, it is worth asking one of these groups rather than burning a flag yourself.
Is the Flag Code enforceable?
For private citizens, the Flag Code does not include penalties, and it is generally treated as guidance rather than an enforceable law. The Supreme Court ruled in Texas v. Johnson (1989) and United States v. Eichman (1990) that burning the flag as political protest is speech protected by the First Amendment.
That said, some rules may still apply in particular settings. Homeowners’ associations, landlords, workplaces and military bases can have their own policies, and federal law limits how much an HOA can restrict the display of the flag. If you have a specific legal concern, check with a local attorney or the relevant organization. If you are interested in historical designs, you may also want to read whether it is illegal to fly a 48-star flag.