
How lien position works
You take out a home equity line of credit on a house that already has a mortgage. The HELOC lender asks to see the first mortgage balance before approving it. The reason is lien position: it needs to know how much sits ahead of it in line.
A lien is a legal claim on property that secures a debt. When there are several, the order matters. In general, the lien recorded first has the highest priority, a rule often described as “first in time, first in right.” The first mortgage is the first lien, the HELOC or home equity loan taken later is usually the second lien, and any further loans are third and below.
Order matters at a foreclosure or sale. Sale money goes to the first lien until it is paid in full, then to the second, then to the third. If the sale does not cover everyone, the lowest-ranked lenders take the loss, or are wiped out of the property claim. When a first lien forecloses, junior liens are generally extinguished, though the borrower may still owe the underlying debt.
Some liens jump the line. Unpaid property taxes usually take priority over mortgages, whatever the date. In some states, homeowners association liens and certain contractor liens have partial or full priority too, and the rules differ by state.
Lenders price for position. A first mortgage is lower risk, so rates are lower. A second lien lender is further back in line and charges more, and often limits the combined loan-to-value, or CLTV, which adds all liens together and divides by the home’s value.
Example: a house with a first mortgage and a HELOC
This is an example. A home is worth $400,000. The first mortgage balance is $280,000 and the HELOC balance is $60,000. The combined loan-to-value is ($280,000 + $60,000) / $400,000 = $340,000 / $400,000 = 85%.
Suppose the home is sold in a foreclosure and the net proceeds, after costs, are $310,000. The first lender is paid in full: $280,000. That leaves $310,000 minus $280,000 = $30,000 for the HELOC lender, which is owed $60,000, so it is short $30,000.
If the home had netted $340,000, both lenders would be paid in full, since $280,000 plus $60,000 = $340,000, with nothing left over. Position makes the same house a safe loan for the first lender and a risky one for the second. Whether the borrower still owes the $30,000 shortfall depends on state law and the loan terms.
First lien vs second lien
| Point | First lien | Second lien |
|---|---|---|
| Paid first? | Yes | After the first is fully paid |
| Typical loan | Purchase mortgage or refinance | HELOC or home equity loan |
| Rate | Usually lower | Usually higher |
| Risk to lender | Lower | Higher |
Here is the piece most guides skip: if you refinance your first mortgage while a HELOC is open, the new loan would be recorded later, which would push it behind the HELOC. The new lender will insist that the HELOC lender sign a subordination agreement to keep it in first place, or that you pay off the HELOC at closing.
Mistakes that trip up borrowers on lien position
- Forgetting the refinance hurdle. A second lien lender must agree to stay behind a new first mortgage.
- Ignoring tax liens. Unpaid property taxes can leap ahead of a mortgage, so keep up with them.
- Counting only the first mortgage. Equity is value minus all liens, not just the first loan.
- Assuming a lien disappears when you sell. Liens are paid from the sale or the title stays clouded.
- Skipping the title search. Buyers and lenders should check the recorded liens before closing.
Questions
Which lien gets paid first?
Usually the one recorded first, though unpaid property taxes and certain other liens can take priority regardless. State law governs the exceptions.
Is a HELOC a first or second lien?
It is usually a second lien when it sits behind a first mortgage. If there is no mortgage, a HELOC can be the first lien.
Can you change lien position?
Yes, by agreement. A lender can sign a subordination agreement to move behind another lien, which is common in refinancing.




