For rifles, minimum barrel length is 16" and minimum overall length is 26".
For shotguns, minimum barrel length is 18" and minimum overall length is 26".
Length is measured from the face of the closed bolt to the muzzle. If you have a permanently attached flash hider, then it is from face of closed bolt to end of flash hider.