You can get DVT if you have certain medical conditions that impact how your blood clots. A blood clot in the legs can also develop if you are sedentary for a long time. For example, you might not move a lot when traveling a long distance or when you're on bed rest because of an illness, an accident or when you’re recovering from surgery. If you spend a lot of time sitting, this also puts you at greater risk for developing DVT.