 Rayner joined the Middlesex County Cricket Club on loan for the start of the 2011 season until mid-May.In August 2011, Rayner returned to Middlesex on loan for the remainder of the season.Rayner, then aged 25, hit 266 runs and took 11 wickets in eight County Championship games for Middlesex during 2011.