I am a Canadian citizen. I have been working in a company in Mississauga Ontario since 2016. Around this timeframe my dad was diagnosed with illness so he added me on to his property in Markham Ontario March 2016. Since it's bit of a drive for me from and to Markham to Mississauga I lived with my brother closer to my work (Brampton Ontario). And I decided to rent the property since I wasn't making enough money to pay mortgage. then back in March 2018 I move back to the property and sold the property on September 2018 so I can buy a house close to my work.
(I'VE NEVER EVER OWNED ANY PROPERTY BEFORE. THIS IS MY ONLY PROPERTY)
Now my accountant is saying I have to pay capital gain on the property since I did not live there even though this is my one and only primary property.
To make things worse My Accountant mentioned I did not buy the property from my parents I was added into to there mortgage and became 99% share holder. therefore I have to pay tax on Capital gained that my parents originally bought the property for minus the price I sold it.
I've Found one government page about renting a principal residence, but I find it very confusing.
EDIT: My parents bought the house back in June 2007 and I lived with them though my high school and uni. then after my father's illness he added me to his property back in December 2015 and then I lived there fore 3 - 4 months before I moved and lived with my bother. At this time i did not purchase any other property. my salary was just enough to feed me and payoff my student loan lol. again I moved back to the property. March 2018 and sold it September 2018. So I lived in the house for about 6 -7 months again before I sold it