Abstract In this note we prove weighted Rellich–Sobolev and Hardy–Sobolev inequalities in variable exponent Lebesgue spaces L p ( ⋅ ) ( 𝔾 ) {L^{p(\,\cdot\,)}(\mathbb{G})} defined on stratified homogeneous groups 𝔾 {\mathbb{G}} . To derive the main results, we rely on weighted estimates for the Riesz potential operators in L p ( ⋅ ) ( 𝔾 ) {L^{p(\,\cdot\,)}(\mathbb{G})} , where 𝔾 {{\mathbb{G}}} is a general homogeneous group. The results are new even for the Abelian (Euclidean) case 𝔾 = ( ℝ d , + ) {\mathbb{G}=(\mathbb{R}^{d},+)} and the Heisenberg groups 𝔾 = ℍ n {\mathbb{G}={\mathbb{H}}^{n}} . The main statements are obtained for variable exponents satisfying the condition that the Hardy–Littlewood maximal operator is bounded in appropriate variable exponent Lebesgue spaces. We also give some quantitative estimates for the norms of integral operators involved in derived estimates.