The Violin Sonata in F minor, BWV 1018, is a piece for solo violin with keyboard accompainment composed by Johann Sebastian Bach around 1717-23 as part of his Six Sonatas for Keyboard and Violin. It was first published in 1814. The average performance time of the piece is 16 minutes.