
The peak-end rule is the psychological heuristic by which people judge an experience almost entirely based on how they felt at its most intense point (the peak) and at its end — rather than as an average of all moments.
Participants held their hand in painfully cold water for two conditions:
Participants rated Condition B as less unpleasant and preferred to repeat it — even though it objectively involved more total pain. The warmer ending dominated memory.
Engineer your peaks and endings deliberately. Everything in the middle matters less than you think.
Reference: