"Thinking Out Loud" is a song by English singer-songwriter Ed Sheeran, recorded for his second studio album, Ã--(2014). It was written by Sheeran and Amy Wadge, and was produced by frequent collaborator Jake Gosling. It was released in the US on 24 September 2014, serving as the third single from the album. In the UK, the song spent 19 weeks within the top 40 before it peaked at No. 1 in early November 2014; it became Sheeran's second number-one single there. The single has also reached the top spot in Australia, Ireland, New Zealand, Denmark, the Netherlands, Slovakia and South Africa, and is also Sheeran's highest charting single in North America to date, peaking at No. 2 on both the US Billboard Hot 100 and the Canadian Hot 100. In June 2015, "Thinking Out Loud" became the first single to spend a full year in the UK top 40. In September 2015, it also became the seventh single to have achieved triple platinum in the UK during the 21st century. In October 2015, the song became the first to be streamed over 500 million times on Spotify, is also one of the most streamed songs in the UK and has been viewed more than 1.3 billion times on YouTube. "Thinking Out Loud" received nominations for Grammy Award for Record of the Year, Song of the Year and Best Pop Solo Performance at the 58th Grammy Awards, winning the latter two. On 10 August 2016, it was announced that Sheeran was getting sued by the family of Ed Townsend for copyright infringement, who claim that "Thinking Out Loud" plagiarises elements of Marvin Gaye's "Let's Get It On".