Taylor Swift made almost $1 million profit on the property she bought to be closer to her now ex-boyfriend.

The 'I Knew You Were Trouble' singer purchased a house across the street from Conor Kennedy's grandmother in Hyannis Port, Massachusetts last year for $4.8 million.

The 23-year-old star was eager to get rid out the 13-room house as soon as she and Conor broke up after a few months together and recently resold it for $5.675 million, earning her a profit of $875,000, according to gossip website TMZ.com.

Taylor previously tried to deny that she ever owned the property, telling Vanity Fair magazine: ''People say that about me, that I apparently buy houses near every boy I like - that's a thing that I apparently do. If I like you I will apparently buy up the real-estate market just to freak you out so you leave me,''

However, the paperwork showed that she had and a source close to the singer confirmed: ''It was like a house-flip. A good short-term investment.''

The singer and her parents fell in love with the home after spending time in the area with 18-year-old Conor, who is the son of Robert Kennedy Jr. and the late Mary Kennedy, last summer.

A realtor previously confirmed the purchase of the house - which was originally ''way overpriced'' and listed for $14 million, saying: ''It's in a beautiful location and right across the street from Conor and the Kennedys.

''It's a beautiful home. She got a nice home, paid fair price. The house was on the market for two to four years.''

Taylor and Conor were first spotted together in June but split when he returned to school in September.