Federal Law says you must be 21 years old to purchase a handgun or any regulated firearm. You must be 18 years old to purchase a long gun or rifle in Maryland.