This paper investigates the optimal private health insurance contract design problem, considering the joint interests of a policyholder and an insurer. Both the policyholder and the insurer jointly determine the premium of private health insurance. In order to better reflect reality, the illness expenditure is modelled by an extended compound Poisson process depending on health status. Under the mean–variance criterion and by applying dynamic programming, control theory, and leader–follower game techniques, analytically time-consistent private health insurance strategies are derived, optimal private health insurance contracts are designed, and their implications toward insurance are analysed. Finally, we perform numerical experiments assuming that the policyholder and the insurer calculate their wealth every year and they deposit their disposable income into the Bank of China with the interest rate being r=0.021. The values of other model parameters are set by referring to the data in the related literature. We find that the worse the policyholder’s health, the higher the premium that they pay for private health insurance, and buying private health insurance can effectively reduce the policyholder’s economic losses caused by illnesses.