The Forty-Fifth Virginia Infantry was organized on May 29, 1861, and was mustered into Confederate service a few days later. It originally contained 10 companies, A through K. An eleventh company, L, served with the regiment from September 3, 1861 until January 15, 1862 when it was reassigned to the Twenty-Third Virginia Infantry Battalion.

More detailed information about each company is given below: