It’s arcane. It’s simple. It’s unfair. It’s essential.

The practice of tipping can be frustrating to the mathematically challenged—including those who have had one too many drinks—and to servers who feel they’ve been shortchanged.

Supporters of tipping say it encourages good service and often allows workers to earn more than they would in a...