Internal prototype — noindexed, not linked from public navigation yet.

Md. Code, Criminal Procedure § 6-218

This is the official text of Md. Code, Criminal Procedure § 6-218, part of Maryland’s Code, Criminal Procedure — sets the procedural rules for criminal cases.

Not legal advice. This page reproduces the official text of a government statute for reference only. Laws change, and how a statute applies depends on your specific facts. For advice about your situation, consult a licensed attorney in your state.

§6–218.

Official statutory text

(a) This section does not apply to a parolee who is returned to the custody of the Division of Correction because of a subsequent crime and is confined before being sentenced for the subsequent crime.

(b) (1) A defendant who is convicted and sentenced shall receive credit against and a reduction of the term of a definite or life sentence, or the minimum and maximum terms of an indeterminate sentence, for all time spent in the custody of a correctional facility, hospital, facility for persons with mental disorders, or other unit because of:

(i) the charge for which the sentence is imposed; or

(ii) the conduct on which the charge is based.

(2) If a defendant is in custody because of a charge that results in a dismissal or acquittal, the time that would have been credited if a sentence had been imposed shall be credited against any sentence that is based on a charge for which a warrant or commitment was filed during that custody.

(3) In a case other than a case described in paragraph (2) of this subsection, the sentencing court may apply credit against a sentence for time spent in custody for another charge or crime.

(c) A defendant whose sentence is set aside because of a direct or collateral attack and who is reprosecuted or resentenced for the same crime or for another crime based on the same transaction shall receive credit against and a reduction of the term of a definite or life sentence, or the minimum and maximum terms of an indeterminate sentence, for all time spent in custody under the prior sentence, including credit applied against the prior sentence in accordance with subsection (b) of this section.

(d) A defendant who is serving multiple sentences, one of which is set aside as the result of a direct or collateral attack, shall receive credit against and a reduction of the remaining term of a definite or life sentence, or the remaining minimum and maximum terms of an indeterminate sentence, for all time spent in custody under the sentence set aside, including credit applied against the sentence set aside in accordance with subsection (b) of this section.

(e) (1) The court shall award the credit required by this section at the time of sentencing.

(2) After having communicated with the parties, the court shall tell the defendant and shall state on the record the amount of the credit and the facts on which the credit is based.

Status: in_force · Read it on the official government site

About this page: Statute text is reproduced from official government publishers via the Open US Law dataset (Vaquill AI, snapshot v2026.08, CC BY 4.0). Primary legislative text like this is public domain under the government-edicts doctrine (Georgia v. Public.Resource.Org, 2020). We link every section back to its official source so you can verify it independently.