Treatment for deep vein thrombosis with anticoagulants usually lasts for 3 to 6 months. However, if you are being treated for the prevention of a DVT in a short-term risk situation like surgery, your treatment may be shorter.