Refinance Tangent
This is the seventh of a twelve-part series for comparing real estate to other investments like stocks. This part focuses on how long a mortgage should be held before refinancing if all of the terms stay the same, interest, inflation, market valuation after inflation, etc.

We previously found the nominal equity buildup ∑n in mortgages with monthly payment p and the performance Gn of real estate investments after n months, in terms of the mortgage months-to-value ratio (RN), inflation (π) and an opportunity cost (ω) of other investments.
for mortgage preference factor, time underwater and effective leverage ratio.
For example if , this would be like saying your IRA is up 10% after months. Like other lowercase/capital variables, we define as the fractional performance of a real estate investment over months. From this, the average fractional yield () is a geometric average, i.e. the th root of .
When bought with debt, the yield of real estate investments depends on , the number of months a mortgage is held before selling or refinancing. To optimize this we take the derivative of the fractional yield using partial derivatives and the chain rule.
Setting the derivative to zero and substituting for G gives our optimization equation for n, for .
Next we define , , , and and make five assumptions to simplify the optimization function.
- Monthly opportunity cost yield is positive but significantly less than one
and monthly inflation is positive but less than private opportunity cost.
This allows us to ignore the linear edge cases from the geometric series in the performance equation. - Based on assumption (1), we make the algebra and computation simpler
by taking Taylor Series expansions for ln(x) about x=1. Thus for ω,
π, and ρ in place of x,
- For
,
we assume it can be approximated by a first order Taylor Series
about a performance of zero
().
Thus the optimization function becomes:
- The power functions that make up G can be approximated by first order
Maclaurin series, and assumption (2) for the resulting logarithm
can be reapplied:
- We assume real interest rates are zero, thus .
Applying the above assumptions simplify the performance function to:
Next we solve with a sixth assumption, (6) that the derivative of G can be further approximated by the derivative of the linear approximation of G.
Qualitatively we see the optimum refinance period (n) grows longer with larger refinance fees (T) and lower nominal interest rates or longer loan periods (RN) and grows shorter with higher leverage ratios (L) and cash-flow ratio (c).
Since the leverage ratio (L) and cash-flow ratio (c) are inversly related in terms of down payment and the mortgage months-to-value ratio (RN) and months-of-rent fee (T) are inversly related in terms of loan period, options available to the consumer have little impact on the optimum refinance period, with the exception of points that both lower the interest rate and raise upfront fees. Note this equation does not account for interest rates and inflation changing.
For example for my first two properties, on the one above I chose to maximize points on a 30-year mortgage because I though interest rates would rise. However on the property below I chose no points and a 15-year mortgage in hopes that interest rates lower in the next 5 years.

The examples show this simplified quadratic model is usually ok for a yield estimate, but it has plenty of room for improvement especially at estimating the time. The next article improves upon this quadratic estimate by revisiting assumptions 3-6 to make the cubic estimate also shown on the examples above.
This is useful for improving the calculators but has too much detail to gain any insigts. The next interesting article takes
This is the seventh part of a series Should I Buy or Rent?
As a powerful argument on the nature of fiat currency, as real interest rates trend toward zero, the optimum period for owning a mortgage liability becomes approximatable analytically!

The inflation (i) adjusted yield depends on the leverage ratio (L) and the equity buildup Σ(n)/p, and these equation and all the other terms are defined in those articles. For here, the combined yield (Y) is composed of two parts, the cash flow dividend (X) made each month and an ammortized dividend from equity buildup (y) when you sell or refinance. These two parts are demonstrated in the graph below.

To help determine an approximate time for peak yields, there are three assumptions we will use.
- Inflation and interest rates are nearly equal.
- Inflation is low enough a first order approximation of the natural log holds.
- The leverage ratio is sufficiently large and external yield (X) sufficiently flat that the peak net yield (Y) occurs nearly concurrently with equity yield (y).
Maximizing Equity Yield
The rate of equity buildup, in inflation back-adjusted terms is:

If we assume real interest rates are zero, or that inflation equals the nominal interest rate (i = r), then equity buildup becomes linear, Σn/p = n, and the first intersection point of an "refinance window" can be found quadratically. This optimum "window" represents the tangent point for capital gains from equity buildup (blue), equivalently compared to regular dividends from stocks or rental cash flow (dotted black).

Optimum Point Derivation
To make the algebra easier, we define some helper variables and then take the derivative of the equity yield (y) to find its optimum.

Setting the derivative equal to zero, substituting n for Σn/p, and assuming g is near 1 to approximate ln(g) = g - 1 results in a quadratic equation we can solve.

The long tangent of the last three articles was to reach this point. Now the mortgage calculator can estimate yields from the loan liability for comparisons to stocks or other investments!