Right ventricular (RV) dysfunction is the most important determinant of survival in patients with pulmonary hypertension (PH). The manifestations of RV dysfunction not only include changes in global RV systolic function but also abnormalities in the pattern of contraction and synchrony. The effects of PH on the right ventricle have been mainly studied in patients with pulmonary arterial hypertension (PAH). However, with the demographic shift towards an aging population, heart failure with preserved ejection fraction (HFpEF) has become an important etiology of PH in recent years. There are significant differences in RV mechanics, function and adaptation between patients with PAH and HFpEF (with or without PH), which are related to different patterns of remodeling and dysfunction. Due to the unique features of the RV chamber, its connection with the main pulmonary artery and the pulmonary circulation, an understanding of the mechanics of RV function and its clinical significance is mandatory for both entities. In this review, we describe the mechanics of the pressure overloaded right ventricle. We review the different mechanical components of RV dysfunction and ventricular dyssynchrony, followed by insights via analysis of pressure-volume loop, energetics and novel blood flow patterns, such as vortex imaging. We conduct an in-depth comparison of prevalence and characteristics of RV dysfunction in HFpEF and PAH, and summarize key outcome studies. Finally, we provide a perspective on needed and expected future work in the field of RV mechanics.