So I'm about to sell my family home.

We're planning to buy a triplex and rent out the other 2 units.

But I was wondering if this was a good idea.

Should I buy the triplex through my Corp/ LLC and pay rent to my LLC for the unit?

It's my first rental property so I just want to know what others are up to.