Section 22 — Commencement and deduction of detention
English translation
A term of imprisonment shall commence from the day of the judgment; but if the person subject to the judgment was detained before the court's judgment, the days of detention shall be deducted from the term of imprisonment under the judgment, unless the judgment provides otherwise. Where the person subject to the judgment was detained before the judgment, the court shall order the deduction of such days of detention, but the number of days deducted, together with the term of imprisonment under the judgment, shall not exceed the maximum penalty for that offense.
This English translation is provided for reference only and has not yet been firm-verified — always rely on the Thai original.
Firm annotation
Section 22 fixes when a prison term begins and requires credit for pre-judgment detention, a core fairness rule so that time already spent in custody counts toward the sentence. The Supreme Court reads 'detained before judgment' narrowly: only custody in the very case being decided may be credited, not days spent detained in a separate case. The provision also underlies consecutive sentencing (counting one term after another) at the court's discretion, subject to the logical limit that where another case ended in a death sentence there is no imprisonment term to run consecutively. The second paragraph caps the combined figure so that credited detention plus the sentence never exceeds the offense's statutory maximum.
Why this matters in practice
This is money in the bank for anyone held before trial: every day in pre-judgment custody in the same case must be credited against the final sentence, so it is worth confirming the judgment actually orders the deduction. Note the limit, days spent in custody on a different case do not count, and consecutive sentencing across cases can extend total time served. If you have been held in custody awaiting trial, check that the deduction is correctly reflected; our note on what to know before you go to court in Thailand gives useful background.
Supreme Court decisions interpreting this section
-
Supreme Court Judgment No. 108/2566 (2023)
Under Section 22 paragraph one, detention 'before judgment' means custody in the very case being decided; days spent detained in another case cannot be deducted from the imprisonment in this case.
The defendant argued he should be credited with all 588 days held before judgment across three cases heard together. The Court explained that Section 22 paragraph one credits only detention in the case in which judgment is given; 'detained before judgment' means detained in that case, so days detained in other cases cannot be deducted from the term in this one.
-
Supreme Court Judgment No. 1518/2565 (2022)
Section 22 paragraph one lets a court order sentences to run consecutively, but where another case ended in a death sentence there is no imprisonment term for the present sentence to run after, so consecutive counting is impossible.
The Court held that where the present case imposes imprisonment, a court may in its discretion order it to run consecutively with imprisonment in another case under Section 22 paragraph one. But in the other case the Supreme Court had imposed the death penalty, so there was no imprisonment term to run consecutively, and by their nature a death sentence and a prison term cannot be counted consecutively.
-
Supreme Court Judgment No. 4884/2566 (2023)
Where confinement is substituted for imprisonment, the court may under Section 22 order the confinement terms to run consecutively with those in other cases, even though the cases are not yet final.
The defendant's imprisonment across four cases was changed to confinement. Because confinement is imposed in place of imprisonment, the defendant remains bound by the judgments, and the fact that the cases were still on appeal was no bar to counting the confinement consecutively. The Court upheld the order to count the confinement in this case after the confinement in the others under Section 22.
Curated decisions with case numbers verified against the Supreme Court database. English renderings are the firm's editorial translation for study.
Frequently asked questions
Is time in custody before trial deducted from the sentence?
Yes. Under Section 22, days spent in detention before judgment in the same case are deducted from the term of imprisonment, unless the judgment provides otherwise.
Can detention in another case be deducted?
No. The Supreme Court has held that only detention in the very case being decided may be credited; days detained in a separate case cannot be deducted.