When is cursing illegal in the U.S.?
<p>For example, I've heard before that it's actually illegal to swear at a police officer (I've also heard that's true in the U.K. as well, although that's not my question).</p>

<p>However, what counts as "swearing" is a very subjective thing, and clearly there are plenty of contexts where no word is off-limits (because, thankfully, free speech is a thing here), so it seems like a difficult thing to enforce. I've also never heard of anyone actually being prosecuted for this.</p>

<p>So, the three parts of my question are:</p>

<ul>
<li>When is it illegal to swear, if ever (I'm guessing this probably varies a lot by state, so I'd be okay with just a federal law answer)?</li>
<li>What actually counts as swearing (under each law / circumstance)?</li>
<li>What penalties would I be facing (under each law / circumstance)?</li>
</ul>

<p><a href="http://blogs.denverpost.com/crime/2011/06/13/the-f-bomb-isnt-polite-or-illegal/48/" rel="noreferrer">Denver lawyer David Lane has said</a>, “The First Amendment lives in a rough neighborhood and if you can’t stand the neighborhood move to China … or somewhere the First Amendment does not exist.”</p>

<p>"One man's vulgarity is another's lyric." <a href="https://scholar.google.com/scholar_case?case=7398433541275578772&amp;q=Cohen%20v.%20Cali&amp;hl=en&amp;as_sdt=6,37#p25" rel="noreferrer"><em>Cohen v. Cali.</em> 403 U.S. 15, 25 (1971)</a></p>

<p>At this point, we need to define illegal as used in your question. For instance, do you mean "you can face any form of punishment"? If so, this question is extremely broad and governed by multiple sets of laws. </p>

<p>Additionally, one should note that this is a Federal Question. The First Amendment, through the Due Process clause applies to states as well. Therefore, there will be extremely little discrepancy (if any - first impression issues being the main differences probably) between the States,.</p>

<p><a href="https://www.fcc.gov/guides/obscenity-indecency-profanity-faq" rel="noreferrer">The FCC can limit profanity on air.</a> Additionally,  <a href="https://www.law.cornell.edu/uscode/text/18/1464" rel="noreferrer">Title 18 of the United States Code, Section 1464,</a> (Whoever utters any obscene, indecent, or profane language by means of radio communication shall be fined under this title or imprisoned not more than two years, or both.
) prohibits the utterance of any obscene, indecent or profane language by means of radio communication. </p>

<p>The <a href="http://uspto.gov" rel="noreferrer">USPTO</a> can <a href="https://scholar.google.com/scholar_case?case=6965806919388894539&amp;q=702%20F.3d%20633&amp;hl=en&amp;as_sdt=6,37" rel="noreferrer">limit Trademarks with "vulgar" meaning</a>. (See EDIT below for update.)</p>

<p>In School:
High school student's First Amendment rights were not violated in suspension for uttering obscenity, regardless of whether she was merely repeating and returning words originally directed at her, particularly where words were clearly disruptive as they were heard by 90 students in cafeteria and, in opinion of assistant principal, were “fighting words.” <a href="https://scholar.google.com/scholar_case?case=6623327496247022767&amp;q=%20928%20F.Supp.%20789&amp;hl=en&amp;as_sdt=6,37" rel="noreferrer">Heller v. Hodgin, S.D.Ind.1996, 928 F.Supp. 789.</a></p>

<p>Fighting Words: These seem to be words that would invoke, or are likely to invoke a fight.</p>

<p><a href="https://scholar.google.com/scholar_case?case=11156615267000448814&amp;q=897%20F.Supp.%20649&amp;hl=en&amp;as_sdt=6,37" rel="noreferrer">Fighting words claim upheld</a>:
Arrestee's speech when crowd gathered near fallen tree that had blocked traffic constituted unprotected fighting words, so that his arrest under city disorderly conduct ordinance did not violate his First Amendment free speech rights; arrestee's repeated use of the word “bitch,” his accusation of matricide directed toward his sister, his use of the phrase “<a href="http://i2.cdn.turner.com/cnnnext/dam/assets/150626213815-rainbow-white-house-exlarge-169.jpg" rel="noreferrer">fucking queer</a>,” his pushing of third party and his raised voice all tended to show that his conduct, under the circumstances, had tendency to provoke physical altercation.</p>

<p><a href="https://scholar.google.com/scholar_case?case=2219668728892189742&amp;q=332%20F.3d%20199&amp;hl=en&amp;as_sdt=6,37" rel="noreferrer">Fighting words claim not upheld</a>:
Detainee's profane words to police officer as officer conducted Terry stop, “son of a bitch,” while unpleasant and insulting, were not “fighting words,” given officer's confirmation of fact that words did not cause anyone to fight or become angry; thus, words could not constitute violation of disorderly conduct statute and in turn could not supply probable cause for disorderly conduct arrest.</p>

<p>In addition to fighting words, true threats and incitement to imminent lawless action are not protected under the First Amendment.</p>

<p>Additionally, the government can regulate free speech in public schools (hence <a href="https://en.wikipedia.org/wiki/Free_speech_zone" rel="noreferrer">Free Speech Zones</a>) and while in their employ (no yelling at your boss if you want to keep your job). </p>

<hr>

<p>It is not part of the main question, but free speech inside the court room. Well, the Judge is pretty much king in a courtroom. What he says goes. (more or less, like nothing toooooo crazy). In a courtroom, if you do something a Judge doesn't like, he can hold you in <a href="https://en.wikipedia.org/wiki/Contempt_of_court" rel="noreferrer">contempt of court</a>. (<a href="https://scholar.google.com/scholar_case?case=10826199069820673678&amp;q=376%20U.S.%20681&amp;hl=en&amp;as_sdt=6,37" rel="noreferrer">You get no jury for contempt cases.</a>)</p>

<hr>

<p>EDIT: Since I wrote this answer, new law came out from the Supreme Court in 
<a href="https://www.supremecourt.gov/opinions/16pdf/15-1293_1o13.pdf" rel="noreferrer">Matel v. Tam, 582 U.S. ___ (2017)</a>. The Supreme Court affirmed the finding of the Federal Circuit that the disparagement clause [is] facially unconstitutional under the First Amendment’s Free Speech Clause.</p>

<blockquote>
  <p>Simon Tam, lead singer of the rock group “The Slants,” chose this moniker in order to “reclaim” the term and drain its denigrating force as a derogatory term for Asian persons. Tam sought federal registration of the mark “THE SLANTS.” The Patent and Trademark Office (PTO) denied the application under a Lanham Act provision prohibiting the registration of trademarks that may “disparage . . . or bring . . . into contemp[t] or disrepute” any “persons, living or dead.” 15
  U. S. C. §1052(a). Tam contested the denial of registration through the administrative appeals process, to no avail. He then took the case to federal court, where the en banc Federal Circuit ultimately found the disparagement clause facially unconstitutional under the First Amendment’s Free Speech Clause. </p>
</blockquote>

<p>The decision aptly concludes with: "If affixing the commercial label permits the suppression of any speech that may lead to political or social “volatility,” free speech would be endangered."</p>

<p>A recent state supreme court case spoke directly to this issue. <em>Ruling date: June 25, 2015.</em></p>

<hr>

<h2>The U.S. Constitution protects your right to curse at the police.</h2>

<p><a href="http://www.seattletimes.com/seattle-news/crime/court-first-amendment-protects-profanity-against-police/" rel="noreferrer">The Seattle Times reports here</a> that the <a href="http://www.courts.wa.gov/opinions/pdf/886946.pdf" rel="noreferrer">Washington State Supreme Court has ruled in the case of State of Washington v. E.J.J.</a>:</p>

<blockquote>
  <p>"<em>First Amendment protects profanity against police</em>"</p>
  
  <p>A teenage boy convicted of obstruction after yelling and cursing at three Seattle police officers while they were investigating a disturbance at his house had a First Amendment right to behave the way he did, the Washington Supreme Court said in an opinion Thursday.</p>
  
  <p>Citizens who curse at police and call them abusive names while they’re investigating a crime are protected from arrest by the First Amendment’s guarantee of free speech, the state Supreme Court ruled Thursday in a case out of Seattle.</p>
</blockquote>

<p>Although <a href="http://www.nolo.com/legal-encyclopedia/can-i-arrested-yelling-swearing-cop.html" rel="nofollow noreferrer">swearing at a police officer in itself is not illegal</a>, the police are very likely to try to find something else to charge you with – along the lines of &quot;<a href="https://en.wikipedia.org/wiki/Contempt_of_cop" rel="nofollow noreferrer">contempt of cop</a>.&quot; The law is very nuanced, one cannot say that anything is blanket legal or illegal.</p>

<p>You're asking about an exception to the right to free speech, and it turns out <a href="http://en.wikipedia.org/wiki/United_States_free_speech_exceptions" rel="nofollow">there's a good page on that question on Wikipedia</a>.  I was amused to discover that, among the exceptions recognized by the Supreme Court, are "fighting words" and "offensive speech," which I believe would be the closest proscriptions on "cursing."  ("Threats of violence" are also generally not protected.)</p>

<p>I expect there is a good deal of variation in how U.S. jurisdictions have chosen to regulate and control unprotected speech.  I would also be interested to see examples.</p>

<p>One recent case that directly addresses your question is <em>Washington v. E.J.J.</em>, in which <a href="http://www.spokesman.com/stories/2015/jun/25/first-amendment-protects-profanity-against-police/" rel="nofollow">the Washington Supreme Court confirmed that the First Amendment protects the right to curse at police</a>.</p>

united-states criminal-law freedom-of-speech