BackgroundPrecise prediction of out-of-pocket (OOP) costs to improve health policy design is important for governments of countries with national health insurance. Controlling the medical expenses for hypertension, one of the leading causes of stroke and ischemic heart disease, is an important issue for the Japanese government. This study aims to explore the importance of OOP costs for outpatients with hypertension.MethodsTo obtain a precise prediction of the highest quartile group of OOP costs of hypertensive outpatients, we used nationwide longitudinal data, and estimated a random forest (RF) model focusing on complications with other lifestyle-related diseases and the nonlinearities of the data.ResultsThe results of the RF models showed that the prediction accuracy of OOP costs for hypertensive patients without activities of daily living (ADL) difficulties was slightly better than that for all hypertensive patients who continued physician visits during the past two consecutive years. Important variables of the highest quartile of OOP costs were age, diabetes or lipidemia, lack of habitual exercise, and moderate or vigorous regular exercise.ConclusionAs preventing complications of diabetes or lipidemia is important for reducing OOP costs in outpatients with hypertension, regular exercise of moderate or vigorous intensity is recommended for hypertensive patients that do not have ADL difficulty. For hypertensive patients with ADL difficulty, habitual exercise is not recommended.