Can You Refinance a Mortgage While a HELOC Is Open?

Updated July 9, 2026 6 min read

Refinancing a first mortgage while a home equity line of credit is still open raises an obvious question: does the new loan wipe out the old one, or does the HELOC just come along for the ride.

The short answer

In most cases, yes, you can refinance a primary mortgage while a HELOC stays open, but the HELOC lender has to agree to move back into second position behind the new loan. That agreement is called subordination, and it isn’t automatic. If the HELOC lender declines, the refinance generally can’t close unless the line is paid off or combined into the new loan instead.

Why lien position matters

Mortgage liens are ranked by the order they were recorded, and that order determines who gets paid first if a home is ever sold in foreclosure. A first mortgage sits in first position, and a HELOC opened afterward sits in second. When a homeowner refinances, the original first mortgage is paid off and replaced by a new one — which, on paper, would normally become the new first lien only if it’s recorded before the HELOC. Since the HELOC was already there, its lender has to voluntarily step back down to second position through a formal request.

What a subordination agreement does

A subordination agreement is the document that lets the HELOC lender keep its lien in place while agreeing it will remain junior to the freshly refinanced loan. Without it, the refinance lender would technically be taking on more risk than it agreed to, since the new loan wouldn’t have the priority claim the numbers were based on. Requesting subordination is usually handled by the closing or title company as part of the refinance process, but it’s a separate approval the HELOC lender has to grant on its own timeline.

What HELOC lenders weigh before agreeing

The HELOC lender isn’t required to say yes, and its decision usually comes down to a few factors:

What can slow things down

Subordination requests can take anywhere from a few days to several weeks depending on the HELOC lender’s internal process, and that timeline doesn’t always match up with the refinance lender’s closing schedule. It’s common for a refinance closing date to be pushed back while the subordination paperwork is pending. Borrowers sometimes discover this only after the refinance is already deep in underwriting, which is why it helps to loop in the HELOC lender early rather than treating it as a formality to handle later.

What to weigh

If a HELOC lender won’t subordinate, or the combined loan-to-value is too high for approval, the alternatives are generally paying down or paying off the HELOC balance before closing, or rolling the HELOC balance into the new refinanced loan so only one lien remains. Each path has different costs and timing implications, and none of them is automatically the better choice — it depends on the numbers involved, the remaining draw period on the HELOC, and how the borrower’s overall debt picture looks once the new loan is in place. Because subordination approval is never a sure thing, it’s worth treating it as a real variable in the refinance timeline rather than an afterthought.