This is a powerful ploy because our memories of a queuing experience, to use an industry term, are strongly influenced by the final moments, according to research conducted by Ziv Carmon, a professor of marketing at the business school Insead, and the behavioral economist Daniel Kahneman. When a long wait ends on a happy note — the line speeds up, say — we tend to look back on it positively, even if we were miserable much of the time. Conversely, if negative emotions dominate in the final minutes, our retrospective audit of the process will skew toward cynicism, even if the experience as a whole was relatively painless.

Professors Carmon and Kahneman have also found that we are more concerned with how long a line is than how fast it’s moving. Given a choice between a slow-moving short line and a fast-moving long one, we will often opt for the former, even if the waits are identical. (This is why Disney hides the lengths of its lines by wrapping them around buildings and using serpentine queues.)

Perhaps the biggest influence on our feelings about lines, though, has to do with our perception of fairness. When it comes to lines, the universally acknowledged standard is first come first served: any deviation is, to most, a mark of iniquity and can lead to violent queue rage. Last month a man was stabbed at a Maryland post office by a fellow customer who mistakenly thought he’d cut in line. Professor Larson calls these unwelcome intrusions “slips” and “skips.”

The demand for fairness extends beyond mere self-interest. Like any social system, lines are governed by an implicit set of norms that transcend the individual. A study of fans in line for U2 tickets found that people are just as upset by slips and skips that occur behind them, and thus don’t lengthen their wait, as they are by those in front of them.

Surveys show that many people will wait twice as long for fast food, provided the establishment uses a first-come-first-served, single-queue ordering system as opposed to a multi-queue setup. Anyone who’s ever had to choose a line at a grocery store knows how unfair multiple queues can seem; invariably, you wind up kicking yourself for not choosing the line next to you moving twice as fast.

But there’s a curious cognitive asymmetry at work here. While losing to the line at our left drives us to despair, winning the race against the one to our right does little to lift our spirits. Indeed, in a system of multiple queues, customers almost always fixate on the line they’re losing to and rarely the one they’re beating.

Fairness also dictates that the length of a line should be commensurate with the value of the product or service for which we’re waiting. The more valuable it is, the longer one is willing to wait for it. Hence the supermarket express line, a rare, socially sanctioned violation of first come first served, based on the assumption that no reasonable person thinks a child buying a candy bar should wait behind an old man stocking up on provisions for the Mayan apocalypse.

Americans spend roughly 37 billion hours each year waiting in line. The dominant cost of waiting is an emotional one: stress, boredom, that nagging sensation that one’s life is slipping away. The last thing we want to do with our dwindling leisure time is squander it in stasis. We’ll never eliminate lines altogether, but a better understanding of the psychology of waiting can help make those inevitable delays that inject themselves into our daily lives a touch more bearable. And when all else fails, bring a book.