Male fertility generally remains viable until advanced ages, but fertility declines gradually after the age of 40.