Mass. Gen. Laws ch. 269, § 10
(a) Whoever, except as provided or exempted by statute, knowingly has in his possession; or knowingly has under his control in a vehicle; a firearm, loaded or unloaded, as defined in section one hundred and twenty-one of chapter one hundred and forty without either:
(5) having complied as to possession of an air rifle or BB gun with the requirements imposed by section twelve B; and whoever knowingly has in his possession; or knowingly has under control in a vehicle; a rifle or shotgun, loaded or unloaded, without either:
(6) having complied as to possession of an air rifle or BB gun with the requirements imposed by section twelve B; shall be punished by imprisonment in the state prison for not less than two and one-half years nor more than five years, or for not less than 18 months nor more than two and one-half years in a jail or house of correction. The sentence imposed on such person shall not be reduced to less than 18 months, nor suspended, nor shall any person convicted under this subsection be eligible for probation, parole, work release, or furlough or receive any deduction from his sentence for good conduct until he shall have served 18 months of such sentence; provided, however, that the commissioner of correction may on the recommendation of the warden, superintendent, or other person in charge of a correctional institution, grant to an offender committed under this subsection a temporary release in the custody of an officer of such institution for the following purposes only: to attend the funeral of a relative; to visit a critically ill relative; or to obtain emergency medical or psychiatric service unavailable at said institution. Prosecutions commenced under this subsection shall neither be continued without a finding nor placed on file.
No person having in effect a license to carry firearms for any purpose, issued under section one hundred and thirty-one or section one hundred and thirty-one F of chapter one hundred and forty shall be deemed to be in violation of this section.
The provisions of section eighty-seven of chapter two hundred and seventy-six shall not apply to any person 18 years of age or older, charged with a violation of this subsection, or to any child between ages fourteen and 18 so charged, if the court is of the opinion that the interests of the public require that he should be tried as an adult for such offense instead of being dealt with as a child.
The provisions of this subsection shall not affect the licensing requirements of section one hundred and twenty-nine C of chapter one hundred and forty which require every person not otherwise duly licensed or exempted to have been issued a firearms identification card in order to possess a firearm, rifle or shotgun in his residence or place of business.
(h)
(j) For the purposes of this paragraph, "firearm'' shall mean any pistol, revolver, rifle or smoothbore arm from which a shot, bullet or pellet can be discharged.
[ Second paragraph of paragraph (j) effective until August 5, 2025. For text effective August 5, 2025, see below.]
Whoever, not being a qualified law enforcement officer or a qualified retired law enforcement officer, as defined in the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. sections 926B and 926C, respectively, as amended and notwithstanding any license obtained by the person pursuant to chapter 140, carries on the person a firearm, loaded or unloaded, or other dangerous weapon in any building or on the grounds of any elementary or secondary school, college or university, including transport used for students of said institution without the written authorization of the board or officer in charge of the elementary or secondary school, college or university shall be punished by a fine of not more than $1,000 or by imprisonment for not more than 2 years or both. A law enforcement officer may arrest without a warrant and detain a person found carrying a firearm in violation of this paragraph.
[ Second paragraph of paragraph (j) as amended by 2025, 14, Sec. 51 effective August 5, 2025. For text effective until August 5, 2025, see above.]
Whoever, not being a qualified law enforcement officer, a qualified retired law enforcement officer, as defined in the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. sections 926B and 926C, respectively, as amended, or a law enforcement officer as defined in section 1 of chapter 6E who is currently certified pursuant to section 4 of said chapter 6E and notwithstanding any license obtained by the person pursuant to chapter 140, carries on their person a firearm, loaded or unloaded, or other dangerous weapon in any building or on the grounds of any elementary or secondary school, college or university, including transport used for students of said institution without the written authorization of the board or officer in charge of the elementary or secondary school, college or university shall be punished by a fine of not more than $1,000 or by imprisonment for not more than 2 years or both. A qualified law enforcement officer or a qualified retired law enforcement officer, as defined in the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. sections 926B and 926C, respectively, as amended, or a law enforcement officer as defined in section 1 of chapter 6E who is currently certified pursuant to section 4 of said chapter 6E may arrest without a warrant and detain a person found carrying a firearm in violation of this paragraph; provided, however, that to qualify for the exemption under this paragraph, the certification of a law enforcement officer as defined in section 1 of chapter 6E shall not be suspended, limited or restricted and the officer shall be permitted to perform police duties and functions involving firearms in accordance with chapter 6E and the regulations promulgated thereunder.
Any officer in charge of an elementary or secondary school, college or university or any faculty member or administrative officer of an elementary or secondary school, college or university that fails to report a violation of this paragraph shall be guilty of a misdemeanor and punished by a fine of not more than $500.
(k)
(2) For the purposes of this subsection, "prohibited area'' shall mean any of the following locations:
(4) It shall be a defense to a violation of this subsection that a person with the necessary license or card issued under sections 129B, 131 or 131F of chapter 140 to possess the firearm securely stored said firearm in a vehicle while within the prohibited area in accordance with sections 131C and 131L of chapter 140.
[ Clause (5) of paragraph (k) effective until August 5, 2025. For text effective August 5, 2025, see below.]
(5) This subsection shall not apply to a qualified law enforcement officer or a qualified retired law enforcement officer, as defined in the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. sections 926B and 926C, respectively, as amended or to a security guard employed at the prohibited area while at the location of their employment and during the course of their employment. Nothing in this paragraph shall limit the authority of any municipality, county or department, division, commission, board, agency or court of the commonwealth to adopt policies further restricting the possession of firearms in areas under their control.
[ Clause (5) of paragraph (k) as amended by 2025, 14, Sec. 52 effective August 5, 2025. For text effective until August 5, 2025, see above.]
(5) This subsection shall not apply to a law enforcement officer as defined in section 1 of chapter 6E who is currently certified pursuant to section 4 of said chapter 6E, a qualified law enforcement officer or a qualified retired law enforcement officer as defined in the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. sections 926B and 926C, respectively, as amended or to a security guard employed at the prohibited area while at the location of their employment and during the course of their employment; provided, however, that to qualify for the exemption under this subsection, the certification of a law enforcement officer as defined in section 1 of chapter 6E shall not be suspended, limited or restricted and the officer shall be permitted to perform police duties and functions involving firearms in accordance with chapter 6E and the regulations promulgated thereunder. Nothing in this paragraph shall limit the authority of any municipality, county or department, division, commission, board, agency or court of the commonwealth to adopt policies further restricting the possession of firearms in areas under their control.
(l) The provisions of this section shall be fully applicable to any person proceeded against under section seventy-five of chapter one hundred and nineteen and convicted under section eighty-three of chapter one hundred and nineteen, provided, however, that nothing contained in this section shall impair, impede, or affect the power granted any court by chapter one hundred and nineteen to adjudicate a person a delinquent child, including the power so granted under section eighty-three of said chapter one hundred and nineteen.
(m) Notwithstanding the provisions of paragraph (a) or (h), any person not exempted by statute who knowingly has in his possession, or knowingly has under his control in a vehicle, a large capacity firearm or large capacity feeding device therefor who does not possess a valid license to carry firearms issued under section 131 or 131F of chapter 140, except as permitted or otherwise provided under this section or chapter 140, shall be punished by imprisonment in a state prison for not less than two and one-half years nor more than ten years. The possession of a valid firearm identification card issued under section 129B shall not be a defense for a violation of this subsection; provided, however, that any such person charged with violating this paragraph and holding a valid firearm identification card shall not be subject to any mandatory minimum sentence imposed by this paragraph. The sentence imposed upon such person shall not be reduced to less than one year, nor suspended, nor shall any person convicted under this subsection be eligible for probation, parole, furlough, work release or receive any deduction from his sentence for good conduct until he shall have served such minimum term of such sentence; provided, however, that the commissioner of correction may, on the recommendation of the warden, superintendent or other person in charge of a correctional institution or the administrator of a county correctional institution, grant to such offender a temporary release in the custody of an officer of such institution for the following purposes only:
(ii) to visit a critically ill close relative or spouse; or (iii) to obtain emergency medical services unavailable at such institution. Prosecutions commenced under this subsection shall neither be continued without a finding nor placed on file. The provisions of section 87 of chapter 276 relative to the power of the court to place certain offenders on probation shall not apply to any person 18 years of age or over charged with a violation of this section.
The provisions of this paragraph shall not apply to the possession of a large capacity firearm or large capacity feeding device by (i) any officer, agent or employee of the commonwealth or any other state or the United States, including any federal, state or local law enforcement personnel; (ii) any member of the military or other service of any state or the United States; (iii) any duly authorized law enforcement officer, agent or employee of any municipality of the commonwealth; (iv) any federal, state or local historical society, museum or institutional collection open to the public; provided, however, that any such person described in clauses (i) to (iii), inclusive, is authorized by a competent authority to acquire, possess or carry a large capacity semiautomatic weapon and is acting within the scope of his duties; or (v) any gunsmith duly licensed under the applicable federal law.
(n) Whoever violates paragraph (a) or paragraph (c), by means of a loaded firearm shall be further punished by imprisonment in the house of correction for not more than 21/2 years, which sentence shall begin from and after the expiration of the sentence for the violation of paragraph (a) or paragraph (c).
(o) For purposes of this section, "loaded'' shall mean that ammunition is contained in the weapon or within a feeding device attached thereto.
For purposes of this section, the terms "ammunition'' and "firearm'' shall have the same meaning as those terms are defined in section 121 of chapter 140.