"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.