Brahms wrote it in 1859–60, in his mid-twenties, before he had published a string quartet. Joseph Joachim led the first performance in Hanover on October 20, 1860, and Simrock published it in 1862.
Brahms arranged the slow movement for solo piano in 1860 and dedicated the arrangement to Clara Schumann. Louis Malle used the sextet in his 1958 film The Lovers (Les Amants), and the slow movement is heard in The Piano Teacher (2001).