This can vary by brand. Generally, it ranges from a few hours to 48 hours. It is best to check with your manufacturer.  Purple mattresses can be slept on right away