Virginia Criminal Attorney Sheryl Shane

Charged With Harassment by Computer in Virginia (§ 18.2-152.7:1): Angry Texts and Emails Are Not Always a Crime

By Sheryl Shane, Virginia Criminal Attorney — Fairfax domestic violence defense lawyer, 31+ years

Quick answer: Virginia Code § 18.2-152.7:1, harassment by computer, is a Class 1 misdemeanor. It is the charge most often brought over angry texts, emails, and messages sent during a breakup, a divorce, or a custody dispute. But the statute does not make every ugly message a crime. The Commonwealth must prove that the language was obscene, lewd, or indecent in the legal sense, or that it threatened an illegal or immoral act, and that it was sent with the intent to coerce, intimidate, or harass. Virginia's appellate courts have reversed convictions where the messages were vulgar and cruel but not obscene. I'm Sheryl Shane, a Fairfax criminal defense attorney with more than 31 years of experience, and below I explain what the charge means and why context decides these cases.

If You Have Been Charged

Most people charged under this statute never thought of themselves as criminals. They sent messages they regret, usually to a spouse, a partner, or an ex, often in the middle of the worst week of a relationship. Then a warrant arrived, sometimes alongside a protective order petition or an assault charge, and the messages they wrote in anger became evidence.

The first thing to understand is that the charge is about specific words sent with a specific intent, not about whether the relationship was bad or whether the other person was upset. That distinction is where these cases are won.

What the Commonwealth Must Prove

Under § 18.2-152.7:1, the Commonwealth must prove that the accused, with the intent to coerce, intimidate, or harass another person, used a computer or computer network to communicate obscene, vulgar, profane, lewd, lascivious, or indecent language, to make a suggestion or proposal of an obscene nature, or to threaten an illegal or immoral act. A smartphone is a computer for purposes of the statute, so text messages, social media messages, and app messages are covered the same way email is.

Three elements do the work in a defense:

The words themselves. The statute lists obscene, vulgar, profane, lewd, lascivious, and indecent language, but Virginia courts have not read that list to reach every crude or hurtful message. "Obscene" is a defined legal term tied to sexual content, not a synonym for offensive. The Supreme Court of Virginia reversed a harassment-by-computer conviction where a husband's emails to his wife were vulgar and disgusting but did not meet the statute's definition of obscenity. The Court of Appeals reached a similar result where an instant message used profanity and a sexual insult to express anger rather than to convey anything obscene. Whether the messages in a given case fall inside or outside those decisions is the first question in every one of these cases.

The intent. The message must have been sent with the intent to coerce, intimidate, or harass. Anger is not the same thing. A message that vents, argues, accuses, or pleads, even in ugly language, is not necessarily one sent to harass. The Commonwealth proves intent from the content, the timing, the number of messages, whether the other person had asked for contact to stop, and what else was going on between the two people.

Who the message was meant for. The statute reaches communications directed at the person. Messages sent to a friend about the other person, or posted where the accused had no intention the other person would see them, raise a different question than messages sent to the person directly.

Why Context Decides These Cases

A single message rarely tells the story. Prosecutors usually present a screenshot or a printout of the worst messages, pulled out of a longer exchange. The defense looks at the whole conversation: what the other person wrote first, whether the exchange was two-sided, whether the messages were answered, and whether the accused stopped when asked. A conversation in which both people were sending the same kind of messages looks very different from one person sending unanswered messages to someone who had cut off contact.

These cases also turn on authentication. The Commonwealth has to prove the accused actually sent the messages. Shared devices, shared accounts, screenshots that cannot be matched to a phone record, and messages that have been edited or cropped are all issues in these cases.

How This Charge Rides Along With Domestic Violence Cases

Harassment by computer is often charged in the same breath as assault and battery against a family or household member or alongside a protective order petition, and the messages become exhibits in both. A threat against a family or household member is usually charged with, or instead of, the assault charge, and it lands in the Juvenile and Domestic Relations District Court with an emergency protective order attached. A protective order can also forbid any contact at all, which means that a message that would not be a crime on its own can become a protective order violation if an order was in place when it was sent. Anyone with a pending protective order should treat every message as if it will be read aloud in court.

Repeated contact that puts someone in fear of death, criminal sexual assault, or bodily injury can also be charged as stalking, which has its own elements and is covered on my stalking defense page.

When a Message Becomes a Felony: Threats Under § 18.2-60

Harassment by computer is a misdemeanor. A written or electronic threat to kill or injure someone is a different and more serious charge. Under Virginia Code § 18.2-60, a threat to kill or do bodily injury that is communicated in writing, including by text message, email, or social media, and that places the person or a member of their family in reasonable apprehension of death or bodily injury, is a Class 6 felony. The 2025 amendments to the statute name electronic messages expressly, and the threat can be charged whether or not the intended target ever received it, as long as it caused reasonable apprehension. Venue lies where the message was sent or where it was received.

The defense in a § 18.2-60 case centers on two questions. First, was it a true threat, or an expression of anger, frustration, or hyperbole that no reasonable person would take as a plan to hurt someone? Second, was the apprehension reasonable? Virginia courts treat how the recipient actually reacted as highly relevant to that question. Someone who kept texting back, made no change to their routine, and reported the message weeks later is in a different position than someone who called the police that night.

A threat made by phone call rather than in writing is generally charged under § 18.2-427, a Class 1 misdemeanor covering profane, threatening, or indecent language over the telephone with the same intent to coerce, intimidate, or harass.

What a Conviction Means

A Class 1 misdemeanor carries up to twelve months in jail and a fine of up to $2,500. A Class 6 felony under § 18.2-60 carries one to five years in prison, or, at the discretion of the court or jury, up to twelve months in jail and a fine of up to $2,500. Beyond the sentence, a conviction for harassment or threats is the kind of record that follows a person into security clearance reviews, custody cases, professional licensing, and immigration proceedings. In a custody dispute, a harassment conviction becomes evidence in the family court case as well.

Frequently Asked Questions

Is sending angry texts a crime in Virginia?

Not by itself. Harassment by computer under § 18.2-152.7:1 requires language that is obscene, lewd, or indecent in the legal sense, or a threat of an illegal or immoral act, sent with the intent to coerce, intimidate, or harass. Virginia courts have reversed convictions where the messages were vulgar and hurtful but not obscene.

Does a text message count as using a computer?

Yes. Virginia courts treat a smartphone as a computer, so text messages, social media messages, and app messages fall under the statute the same way email does.

What is the difference between harassment by computer and a threat under § 18.2-60?

Harassment by computer is a Class 1 misdemeanor based on the nature of the language and the intent behind it. A written threat to kill or injure that places someone in reasonable apprehension is a Class 6 felony under § 18.2-60. The same message can be charged under either statute depending on what it says.

Can I be charged if the other person was sending the same kind of messages?

You can be charged, but a two-sided exchange matters to the defense. The whole conversation, not the screenshot the Commonwealth selected, is what the court should see, and it bears directly on whether the messages were sent to harass or were part of an argument.

What if a protective order was in place when I sent the message?

Then the message may be charged as a protective order violation regardless of what it said. If you are under a protective order, do not contact the person at all, by any method, until a lawyer has reviewed the order with you.

Talk to a Fairfax Domestic Violence Lawyer

If you have been charged with harassment by computer, threats, or a related offense in Fairfax or anywhere in Northern Virginia, the messages are not the whole case. What the Commonwealth has to prove about those messages, and whether it can, is. Call Sheryl Shane at (703) 582-8119 for a confidential consultation. Office: 4015 Chain Bridge Road, Fairfax, Virginia 22030, directly across the street from the Fairfax County Courthouse. For related charges, see the Fairfax domestic violence lawyer page.

This article provides general information about Virginia law and is not legal advice for any specific situation. Reading it, or contacting Virginia Criminal Attorney through this website, does not create an attorney-client relationship. It reflects Virginia law current through the 2026 Special Session I. This is attorney advertising; past results do not guarantee a similar outcome in any future case.

You may also like…

Sheryl Shane is a Virginia criminal defense attorney with more than 31 years of experience defending clients throughout Northern Virginia, handling DUI and driving offenses, domestic violence, sex crimes, theft, fraud, and other felony and misdemeanor charges in Fairfax, Arlington, Prince William, Loudoun, and Alexandria. A former arbitration judge and court-appointed counsel, she maintains a deliberately small practice and personally handles every case she takes, from the first consultation through final resolution. Her office is minutes from the Fairfax County Courthouse.