The expiry price at which option holders, taken together, would lose the most.
Max pain is the strike at which the total value of all open calls and puts would be lowest if the underlying expired there. At that price, option buyers as a group would lose the most and option sellers would keep the most premium.
How it is calculated
For every possible expiry strike, add up what each open call and put would be worth at expiry: for calls, the amount the expiry price is above the strike, times the call OI; for puts, the amount it is below the strike, times the put OI. The strike where that total is smallest is max pain.
How traders use it
Some traders expect the price to drift toward max pain near expiry. The evidence for that is mixed, and max pain moves as OI changes during the day, so it is usually read alongside OI walls and PCR rather than on its own.