The electron temperature and density pedestals tend to vary in their relative radial positions, as observed in DIII-D (Beurskens et al 2011 Phys. Plasmas 18 056120) and ASDEX Upgrade (Dunne et al 2017 Plasma Phys. Control. Fusion 59 14017). This so-called relative shift has an impact on the pedestal magnetohydrodynamic (MHD) stability and hence on the pedestal height (Osborne et al 2015 Nucl. Fusion 55 063018). The present work studies the effect of the relative shift on pedestal stability of JET ITER-like wall (JET-ILW) baseline low triangularity (d) unseeded plasmas, and similar JET-C discharges. As shown in this paper, the increase of the pedestal relative shift is correlated with the reduction of the normalized pressure gradient, therefore playing a strong role in pedestal stability. Furthermore, JET-ILW tends to have a larger relative shift compared to JET carbon wall (JET-C), suggesting a possible role of the plasma facing materials in affecting the density profile location. Experimental results are then compared with stability analysis performed in terms of the peeling-ballooning model and with pedestal predictive model EUROPED (Saarelma et al 2017 Plasma Phys. Control. Fusion). Stability analysis is consistent with the experimental findings, showing an improvement of the pedestal stability, when the relative shift is reduced. This has been ascribed mainly to the increase of the edge bootstrap current, and to minor effects related to the increase of the pedestal pressure gradient and narrowing of the pedestal pressure width. Pedestal predictive model EUROPED shows a qualitative agreement with experiment, especially for low values of the relative shift.