In this manuscript, the existence, uniqueness, and stability of solutions to terminal value problem Riemann-Liouville fractional equations are established in variable exponent Lebesgue spaces L p ( . ) $$ {L}^{p(.)} We convert using generalized intervals piece-wise constant function. Further, Banach contraction principle is used, Ulam-Hyers-stability examined, finally, we construct an example.