Run the numbers on any Zillow listing

Found a place you like on Zillow? This tool grabs the listing price, estimated rent, HOA, and property tax — then opens the calculator with everything filled in. One click, no typing.

1 Drag this button to your bookmarks bar

Zillow → Rent vs Buy

Drag the button above to your bookmarks bar.
Don't see the bookmarks bar? Press Ctrl+Shift+B (Windows) or ⌘+Shift+B (Mac) to show it.

On mobile or can't drag? Copy the bookmark manually
  1. Create a new bookmark in your browser (any page is fine)
  2. Edit the bookmark — change the URL to the code below
  3. Name it something like "Zillow → Rent vs Buy"
javascript:(function()%7Bvar%20U%3D%22https%3A%2F%2Frentvsbuyinca.com%2F%22%3Btry%7Bvar%20pr%3Dnull%2Crn%3Dnull%2Cho%3D0%2Ctx%3Dnull%2Cad%3D%22Unknown%22%3Bvar%20nd%3Ddocument.getElementById(%22__NEXT_DATA__%22)%3Bif(nd)%7Btry%7Bvar%20d%3DJSON.parse(nd.textContent)%3Bvar%20c%3Dd%26%26d.props%26%26d.props.pageProps%26%26d.props.pageProps.componentProps%26%26d.props.pageProps.componentProps.gdpClientCache%3Bif(c)%7Bvar%20co%3Dtypeof%20c%3D%3D%3D%22string%22%3FJSON.parse(c)%3Ac%3Bvar%20ks%3DObject.keys(co)%3Bfor(var%20i%3D0%3Bi%3Cks.length%3Bi%2B%2B)%7Bvar%20raw%3Dco%5Bks%5Bi%5D%5D%3Bvar%20en%3Bif(typeof%20raw%3D%3D%3D%22string%22)%7Btry%7Ben%3DJSON.parse(raw)%7Dcatch(_)%7Bcontinue%7D%7Delse%20if(typeof%20raw%3D%3D%3D%22object%22%26%26raw!%3D%3Dnull)%7Ben%3Draw%7Delse%7Bcontinue%7Dvar%20p%3Den.property%3Bif(!p)continue%3Bif(p.price)pr%3Dp.price%3Bif(p.rentZestimate)rn%3Dp.rentZestimate%3Bif(p.monthlyHoaFee)ho%3Dp.monthlyHoaFee%3Bif(p.propertyTaxRate)tx%3Dp.propertyTaxRate%3Bif(p.streetAddress)ad%3D(p.streetAddress%7C%7C%22%22)%2B%22%2C%20%22%2B(p.city%7C%7C%22%22)%2B%22%2C%20%22%2B(p.state%7C%7C%22%22)%2B%22%20%22%2B(p.zipcode%7C%7C%22%22)%3Bif(pr)break%7D%7D%7Dcatch(_)%7B%7D%7Dif(!pr)%7Bvar%20ls%3Ddocument.querySelectorAll(%22script%5Btype%3D%5C%22application%2Fld%2Bjson%5C%22%5D%22)%3Bfor(var%20j%3D0%3Bj%3Cls.length%3Bj%2B%2B)%7Btry%7Bvar%20ld%3DJSON.parse(ls%5Bj%5D.textContent)%3Bvar%20tp%3DArray.isArray(ld%5B%22%40type%22%5D)%3Fld%5B%22%40type%22%5D%3A%5Bld%5B%22%40type%22%5D%5D%3Bif(tp.indexOf(%22RealEstateListing%22)%3D%3D%3D-1%26%26tp.indexOf(%22Product%22)%3D%3D%3D-1)continue%3Bif(ld.offers%26%26ld.offers.price)pr%3Dld.offers.price%3Bvar%20of%3Dld.offers%26%26ld.offers.itemOffered%3Bif(of%26%26of.address)%7Bvar%20a%3Dof.address%3Bad%3D(a.streetAddress%7C%7C%22%22)%2B%22%2C%20%22%2B(a.addressLocality%7C%7C%22%22)%2B%22%2C%20%22%2B(a.addressRegion%7C%7C%22%22)%2B%22%20%22%2B(a.postalCode%7C%7C%22%22)%7Dif(pr)break%7Dcatch(_)%7Bcontinue%7D%7D%7Dif(!pr)%7Balert(%22Could%20not%20find%20a%20listing%20price.%5CnMake%20sure%20you%20are%20on%20a%20Zillow%20property%20page.%22)%3Breturn%7Dvar%20s%3D%22Zillow%20-%3E%20Rent%20vs%20Buy%22%2B%22%5CnPrice%3A%20%24%22%2Bpr.toLocaleString()%2B%22%5CnRent%3A%20%22%2B(rn%3F%22%24%22%2Brn.toLocaleString()%2B%22%2Fmo%22%3A%22N%2FA%22)%2B%22%5CnHOA%3A%20%24%22%2Bho.toLocaleString()%2B%22%2Fmo%22%2B%22%5CnTax%3A%20%22%2B(tx!%3Dnull%3Ftx%2B%22%25%22%3A%22N%2FA%22)%2B%22%5Cn%5Cn%22%2Bad%2B%22%5Cn%5CnOpen%20calculator%3F%22%3Bif(!confirm(s))return%3Bvar%20q%3D%5B%5D%3Bif(pr!%3Dnull)q.push(%22p%3D%22%2Bpr)%3Bif(rn!%3Dnull)q.push(%22r%3D%22%2Brn)%3Bif(ho)q.push(%22h%3D%22%2Bho)%3Bif(tx!%3Dnull)q.push(%22pt%3D%22%2Btx)%3Bwindow.open(U%2B%22%3F%22%2Bq.join(%22%26%22)%2C%22_blank%22)%7Dcatch(e)%7Balert(%22Error%3A%20%22%2Be.message)%7D%7D)()

2 Go to any Zillow listing and click it

Browse Zillow like you normally would. When you're looking at a specific property, click "Zillow → Rent vs Buy" in your bookmarks bar.

A confirmation dialog will show you what it found:

Zillow -> Rent vs Buy
Price: $1,149,000
Rent Zestimate: $4,671/mo
HOA: $694/mo
Property Tax: 1.17%

988 Harrison St #SC8, San Francisco, CA 94107

Open calculator?

Click OK and the calculator opens in a new tab with the listing's price, rent estimate, HOA, and property tax already filled in. All other assumptions (stock returns, mortgage rate, time horizon, etc.) use the calculator defaults — adjust them to match your situation.

What it pulls from Zillow

Zillow field Calculator field Example
Listing price Purchase price $1,149,000
Rent Zestimate Monthly rent $4,671/mo
Monthly HOA Monthly HOA $694/mo
Property tax rate Property tax % 1.17%

Everything else (down payment %, mortgage rate, stock returns, time horizon, etc.) uses the calculator's defaults. You can tweak any of them after importing.

Good to know

Does this send my data anywhere?
No. The bookmarklet runs entirely in your browser. It reads the Zillow page you're already looking at and opens our calculator — no data is sent to any server.
What if it says "Not a Zillow listing page"?
Make sure you're on an individual property page (like zillow.com/homedetails/...), not a search results page or Zillow's homepage.
What if Rent Zestimate shows "N/A"?
Some listings don't have a rent estimate. The calculator will still open with the other fields — just type in your own rent estimate.
Will this always work?
It depends on Zillow's page structure, which can change without notice. If it stops working, check back here — we'll update the bookmarklet.