Maybe your photo will encourage those same friends and family to vote as well.

But depending on where you live, sharing that selfie could actually be illegal.

Many state governments would agree with you there, as the practice is legal in about half the states.

Beyond those states, though, your right to share a ballot selfie might be restricted or outright illegal.

The practice of taking and posting a ballot selfie while voting has become increasingly popular.

Read on for a full breakdown on which states will have a bone to pick with your ballot selfie.

In which states are ballot selfies illegal?

What are the punishments for taking an illegal ballot selfie?

Below, you could find a list of the states wherepotential consequences under the law are known.

Good for you for voting.

Just be aware of your state’s rules around sharing your civic engagement with others.

For more on the upcoming election, see which states still allow you today toregister to vote.