It forms part of the borders between Maryland , West Virginia , Washington , D.C. , and Virginia .
The river forms part of the borders between Washington , D.C. and Virginia on the left descending bank and Maryland and Virginia on the river 's right descending bank .