How does buying/selling a home affect my taxes?

Hello,

 

I recently purchased a new home and sold my previous home. Both in Massachusetts. I am curious the impact this will have to my taxes.