Case Law Analysis

Period of Undertrial Detention in One Case May Be Set Off Against Sentence in Another | NDPS Act & CrPC Section 428 : Kerala High Court

Kerala High Court holds that undertrial detention in one case can be offset against sentence in another under Section 428 CrPC, even if convictions are later quashed.

Cassie News NetworkCassie News Network
Feb 21, 2026, 1:03 AM(Updated: Nov 3, 2026)
•5 min read
Be the first to share in your circle
Period of Undertrial Detention in One Case May Be Set Off Against Sentence in Another | NDPS Act & CrPC Section 428 : Kerala High Court

A landmark ruling by the Kerala High Court has clarified that the period of undertrial detention undergone by an accused in one criminal case may be set off against the sentence imposed in a separate case, even if the first conviction is later quashed. This decision significantly expands the scope of Section 428 of the Code of Criminal Procedure and reinforces the principle that prolonged incarceration without legal justification must be remedied.

Background & Facts

The Dispute

The petitioner, Riyas, was arrested on 29 August 2018 in connection with Crime No.51/2018 under Section 20(b)(ii)(B) of the Narcotic Drugs and Psychotropic Substances Act, 1985 (NDPS Act). He was granted regular bail on 12 October 2018, which was executed on 31 October 2018. However, he remained in custody because he had already been formally arrested on 15 September 2018 in Crime No.569/2018 for offences under Sections 120B, 364, 201, and 302 r/w 34 IPC. He was convicted and sentenced to life imprisonment in that case on 14 May 2019.

Procedural History

  • 29 August 2018: Arrested in Crime No.51/2018 (NDPS Act)
  • 15 September 2018: Arrested in Crime No.569/2018 (IPC offences)
  • 12 October 2018: Granted bail in Crime No.51/2018 (Ext. P1)
  • 14 May 2019: Convicted and sentenced to life in Crime No.569/2018
  • 11 November 2022: Convicted and sentenced to 5 years rigorous imprisonment + fine in Crime No.51/2018 (Ext. P2)
  • 27 November 2025: Conviction in Crime No.569/2018 set aside by Kerala High Court (Ext. P3)

Relief Sought

The petitioner sought immediate release under Section 427(2) of the CrPC, arguing that his continuous detention since 29 August 2018 exceeded the 5.5-year sentence imposed in Crime No.51/2018, including default sentence. He claimed eligibility for release on 29 February 2024.

The central question was whether the period of undertrial detention undergone by the petitioner in Crime No.569/2018 - a case in which his conviction was later quashed - could be set off against the sentence imposed in Crime No.51/2018 under Section 428 of the CrPC.

Arguments Presented

For the Petitioner

The petitioner’s counsel relied on State of Maharashtra and Another v. Najakat Alia Mubarak Ali (2001) 6 SCC 311 to argue that Section 428 CrPC permits set-off of detention undergone in any case, not merely the one resulting in conviction. She emphasized that the phrase "same case" in Section 428 refers only to the pre-sentence detention period, not the identity of the case. She further contended that since the conviction in Crime No.569/2018 was set aside, the entire detention from 29 August 2018 must now be treated as detention solely in relation to Crime No.51/2018.

For the Respondent

The State contended that Section 428 CrPC only applies to detention in the same case in which the accused is convicted. It argued that the detention in Crime No.569/2018 was legally valid at the time and could not be retrospectively reallocated to Crime No.51/2018. The State further asserted that allowing set-off across cases would undermine the integrity of sentencing in multiple prosecutions.

The Court's Analysis

The Court undertook a detailed statutory interpretation of Section 428 CrPC and its relationship with Section 427. It observed that the purpose of both provisions is to provide amelioration to the accused and prevent unjustified prolonged incarceration. The Court emphasized that the Supreme Court in Najakat Alia Mubarak Ali had already held that the words "same case" in Section 428 do not restrict set-off to detention in the identical case, but merely denote the period of detention preceding conviction.

"The expression 'same case' used in Section 428 of Cr.P.C. does not suggest that set off would be available only if the period undergone as an undertrial prisoner is in connection with that very case in which he was later convicted and sentenced to a term of imprisonment."

The Court further held that once the conviction in Crime No.569/2018 was quashed, the detention suffered during that period lost its legal basis and must now be treated as detention solely in relation to Crime No.51/2018. The petitioner had already served more than the 5.5-year sentence imposed in the NDPS case, including the default sentence. The Court rejected the State’s argument that set-off cannot be applied retroactively, noting that the law’s intent is to ensure justice to the individual, not procedural rigidity.

The Verdict

The petitioner won. The Court held that Section 428 CrPC permits set-off of undertrial detention from any case against the sentence in another, and that upon quashing of the prior conviction, the entire detention period must be credited to the surviving sentence. The petitioner was directed to be released forthwith.

What This Means For Similar Cases

Undertrial Time Can Be Credited Across Cases

  • Practitioners must now argue for set-off of detention across multiple cases under Section 428 CrPC, even if convictions in other cases are later overturned
  • The burden shifts to the prosecution to prove that detention in a quashed case was not part of the overall period of incarceration relevant to the surviving conviction

Quashed Convictions Reset Detention Calculations

  • When a conviction is set aside, the entire period of detention associated with that case becomes eligible for credit against any remaining sentence in another case
  • Courts must recalculate total detention from the date of first arrest, not from the date of conviction in the surviving case

Procedural Delays Cannot Justify Continued Detention

  • Continuous detention beyond the aggregate sentence, even if spread across multiple cases, violates Article 21
  • Lawyers should routinely file writ petitions under Article 226 when undertrial detention exceeds the total sentence, regardless of case multiplicity

Case Details

Riyas v. State of Kerala

2026:KER:14794
Judgment
Court
High Court of Kerala at Ernakulam
Date
19 February 2026
Case Number
WP(Crl.) No. 1763 of 2025
Bench
Dr. Justice Kauser Edappagath
Counsel
Pet: Smt. Priya Shanavas
Res: Sri. M.C. Ashi

Frequently Asked Questions

Yes. The Supreme Court in State of Maharashtra v. Najakat Alia Mubarak Ali held that the phrase 'same case' in Section 428 CrPC refers only to the period of pre-conviction detention, not the identity of the case. The Kerala High Court reaffirmed this, allowing set-off across cases.
If a conviction is quashed, the detention suffered during that case loses its legal basis and must be treated as detention in relation to the surviving conviction. The entire period becomes eligible for set-off against the remaining sentence under Section 428 CrPC.
No. Section 428 CrPC mandates automatic set-off of undertrial detention against the sentence imposed. The court is not required to make a specific direction; the right arises by operation of law.
Yes. The grant of bail in one case does not interrupt the continuity of detention for set-off purposes. The key is continuous incarceration since the first arrest, regardless of bail status in other proceedings.
0

Disclaimer

This article is for informational purposes only and does not constitute legal advice. The views expressed are based on the judgment analysis and should not be taken as professional counsel. Please consult with a qualified attorney for advice specific to your situation.