We characterize, in the context of rearrangement invariant spaces, the optimal range space for a class of monotone operators related to the Hardy operator. The connection between the optimal range and the optimal domain for these operators is carefully analysed.