The basic way to calculate your maximum heart rate is to subtract your age from 220. For example, if you're 45 years old, subtract 45 from 220 to get a maximum heart rate of 175. This is the maximum number of times your heart should beat per minute during exercise.