Retirement tax questions

Thank you @dmertz  for your detailed response and help. I'm still trying to figure out  some points you made as it gets a bit complex towards the bottom regarding me taking the 2019 6k contribution ðŸ˜€.

 

Me and my fiancee have not taken any money out from our roth ira in the past or used the lifetime $10,000 exemption for the first time home purchase. That part I think we are good on that. We didn't start really looking for a place till maybe end of last year. 

 

So far I've withdrawn $38,070.55 after selling my mutual funds in my roth ira leaving a total of $11,067.27 in the account (this # will change daily because its still sitting in a mutual fund).  So technically I can withdraw another $929.45 to completely withdraw $39,000 of my contribution from 2013-2019 which should leave  me a total of $10,137.82?

 

From the 10,137.82 I assume I can withdraw the $10,000  for the first time home buyer exemption to bring my account total to be $137.82?

 

What I'm confused about is your last  paragraph. Lets say I decided wont be making any  contribution back to my Roth IRA this year for 2019. Would it make things less confusing for me.

 

I think what I'm confused about is by putting in 6k this year 2019 and then taking it out the same year. This action seems to have made things more confusing regarding how much I can take and cant. I know definitely the 6k I added to the mutual fund in my Roth earned money in the couple of months I had it in there. But wouldn't those earnings qualify as an exemption for my first time home purchase?

 

Thanks