The duration for which you should elevate your legs can vary depending on your specific condition. Generally, it is recommended to elevate your legs for 15-20 minutes at a time, several times a day. However, your healthcare provider may give you specific guidelines based on your individual needs.