taxes owed selling non-primary secondary residence

If you are selling a home that is not your primary residence, you will have to pay taxes if you made a profit.