This is dependent on the temperature of the water. It is advised you to stay in an onsen for at least 10 to 15 minutes.