The optimal heart rate for running a marathon varies among individuals. Generally, it is recommended to maintain a heart rate within the aerobic zone, typically around 70-85% of your maximum heart rate.