How to Fix a Sagging Door

Sagging doors tend to misalign over time, creating gaps at the top and causing the door to lean against the jamb, where there are no hinges. This can lead to sticking, scraping, or difficulty in locking or unlocking. You can adjust and fix a misaligned or sagging door using simple methods and basic tools.
What Causes Sagging Doors?
The source of the problem with an older or newer door can usually be traced to the door's top hinge. Screws in the top hinge wear out, loosen, or begin to pull straight out in a way that isn't happening in the bottom hinge. Or, a heavy door in a newer home may only be installed with two hinges, but the top hinge carries too much weight.
Another reason for a sagging door in an older home could be that paint or stain seeped under the door hinges. Those extra layers of lodged paint or stain act like spacers to push the door out of alignment.
Source: https://www.thespruce.com/how-to-fix-a-sagging-door-5088273