I like to run this one before every election, because I think it’s important.

With a national election coming up, and with the publicity at its maximum, now is a good time to ask: Is it rational for you to vote? And by extension, was it worth your while to pay attention to whatever the candidates and party leaders have been saying for the past year or so? With the chance of casting a decisive vote that is comparable to the chance of winning the lottery, what is the gain from being a good citizen and casting your vote?

The short answer is: quite a lot.

First the bad news. With 80 million voters, the chance that your vote will determine who controls the House or Senate is, at best, on the order of 1 in a million, even in a battleground district.

The calculation goes as follows. The Democrats are leading in the polls and are expected to take back the House, but there’s a lot of uncertainty in the outcome; for example, fivethirtyeight.com gives a 2 percent chance of the election leading to a 218-217 split, excluding your vote. Now suppose you live in a swing district with a tight race that could go either way; say, roughly, it could go anywhere from 45-55 percent to 55-45 percent in terms of the two-party vote, and also suppose that 200,000 people will be voting in your district. Then the vote margin in your district could be anywhere between +20,000 to -20,000, and, if you decide to vote, the chance of your vote being decisive in then roughly 1 in 40,000. Your vote will determine who controls the House if your vote determines your local House election, and if your representative is required to form a majority for his or her party; the probability of both these things happening is, according to the above calculations, approximately 2 percent times 1/40,000, or 1 in 2 million.

You can do a similar calculation for the Senate, if you happen to live in a state with a close Senate election. Your best bet may well be North Dakota, which has the sweet spot of a close election and a small population. FiveThirtyEight gives a 15 percent chance of the Senate being exactly tied. North Dakota will have, I dunno, 300,000 voters — its Senate race had 230,000 votes in 2010. If the election could be anywhere from 45-55 to 55-45, that gives a probability of 1/60,000 that it’s tied. Multiply 15 percent times 1/60,000, and you get 1 in 250,000. So it’s still a long shot.

Similarly, we estimated a few years ago that the probability your vote is decisive in the presidential election is, at best, 1 in a million in a battleground state and much less in a noncompetitive state. The calculation is based on the chance that your state’s vote will be exactly tied, along with the chance that your state’s electoral votes are necessary for one party or the other to secure an electoral vote majority. Both of these conditions are necessary for your vote to be decisive.

So voting might at first not seem like such a good use of your time.

But here’s the good news. If your vote is decisive, it will make a difference for 300 million people. If you think your preferred candidate could bring the equivalent of a \$100 improvement in the quality of life to the average American — not an implausible hope, given the size of the federal budget and the impact of decisions in foreign policy, health, the courts and other areas — you’re now buying a \$30 billion lottery ticket. With this payoff, a 1 in 10 million chance of being decisive isn’t bad odds.

And many people do see it that way. Surveys show that voters choose based on who they think will do better for the country as a whole, rather than their personal betterment. Indeed, when it comes to voting, it is irrational to be selfish — but if you care how others are affected, it’s a smart calculation to cast your ballot, because the returns to voting are so high for everyone if you are decisive. Voting and vote choice (including related actions such as the decision to gather information to make an informed vote) are rational in large elections only to the extent that voters are not selfish.

That’s also the reason for contributing money to a candidate: Large contributions, or contributions to local elections, could conceivably be justified as providing access or the opportunity to directly influence policy. But small-dollar contributions to national elections, like voting, can be better motivated by the possibility of large social benefit than by any direct benefit to you. Such civically motivated behavior is consistent with both small and large anonymous contributions to charity.

The social benefit from voting also explains the declining response rates in opinion polls. In the 1950s, when mass opinion polling was rare, we would argue that it was more rational to respond to a survey than to vote in an election. For example, as one of 1,000 respondents to a Gallup poll, there was a real chance that your response could noticeably affect the poll numbers (for example, changing a poll result from 49 percent to 50 percent). Nowadays, polls are so common that a telephone poll was done recently to estimate how often individuals are surveyed; the answer was about once per year. It is thus unlikely that a response to a single survey will have much impact.

So, yes, if you are in a state that might be close, it is rational to vote.

For further details, see our articles in Rationality and Society and the Economist’s Voice.

I’d like to add one more thing. You’ve all heard about low voter turnout in America, but among well-educated, older white people, turnout is around 90 percent in presidential elections. Some economists treat this as a source of amusement — and, sure, I’d be the first to admit that well-educated, older white people have done a lot of damage to this country. But it’s a funny thing: Usually economists tend not to question the actions of this particular demographic. I’m not saying that the high turnout of these people (like me) is evidence that voting is rational. But I would hope that it would cause some economists to think twice before characterizing voting as irrational or laughable.

And, no, it’s not true that “the closer an election is, the more likely that its outcome will be taken out of the voters’ hands.” See the appendix on the last page of this article for a full explanation, with calculus!

But what if you live somewhere where there’s no close House or Senate race? Then, yes, there’s essentially zero chance your vote will be decisive in determining control of Congress. In the highly unlikely event that your state or local election is tied so that your vote would swing it, the national election would be so lopsided that your state or district wouldn’t be needed for a national majority. That is the sort of reasoning why we estimated the probability that your vote would swing the presidential election to be less than 1 in 1 billion in states such as New York, California, Kansas or Alabama.

Even in those states, though, I’d still recommend you cast a vote, if you care about the election and you think it’s important for the general good if your candidate wins. Why? Because the election could be close, and there’s a small chance that your vote could determine the winner of the popular vote. The popular-vote winner doesn’t count for anything technically, but it does give some legitimacy.

Or your vote might be enough to cause a change in the rounded popular vote, for example changing the outcome from 50/50 (to the nearest percentage point) to 51/49. Or enough to make the Democrats’ vote margin in 2018 be less than, or exceed, the Republicans’ margin in 2010. Any of these can affect perceptions of legitimacy and mandates.

This is not nearly as important as determining control of Congress, but in this volatile political environment, a perception of electoral legitimacy could make a difference. It could be worth doing your part to increase the chance that your candidate has a legitimizing share of the popular vote.