If you or a family member was kept in custody without lawful authority, wrongly arrested, held after a release order, or kept in jail beyond the date a sentence ended, Indian courts can order the State to pay compensation for illegal detention. This is not a favour and not an act of grace. It flows from the fundamental right to personal liberty under Article 21 of the Constitution, and from a line of Supreme Court decisions running back to 1983 that treat money as a legitimate constitutional remedy when the State takes a person's liberty without authority of law.
This guide sets out what counts as illegal detention, the constitutional and statutory framework with current section numbers, how the two available remedies differ, what the process actually looks like from the day the family first walks into a lawyer's office, what it is likely to cost and how long it is likely to take, and the mistakes that quietly destroy otherwise good claims.
What "illegal detention" actually means
Detention becomes illegal when there is no valid legal authority backing it. Common situations include:
- Arrest without following the mandatory procedure, for example where no grounds of arrest were communicated, or the person was not produced before a magistrate within 24 hours.
- A person kept in jail after a court ordered release or granted bail, because paperwork was delayed.
- A prisoner held beyond the term of the sentence actually imposed, for example where remission or set-off of pre-trial custody was not counted.
- Continued custody after an acquittal or after charges were dropped.
- Preventive detention that breaches the safeguards built into the law.
- Detention in a case where the person was never named, arising from a mistaken identity or a shared name.
- Custody continued after the maximum permissible period of undertrial detention has run out.
The common thread is that the State, through its officers, deprived a person of liberty without authority of law. That is precisely what Article 21 forbids: "No person shall be deprived of his life or personal liberty except according to procedure established by law."
Two distinctions matter at the outset. First, an arrest that turns out to be wrong on the merits is not automatically illegal. A person can be lawfully arrested on reasonable suspicion and later acquitted, and that acquittal by itself does not convert the arrest into a wrong that attracts compensation. What attracts compensation is a defect in authority or in procedure, not a defect in the eventual verdict. Second, illegal detention is different from malicious prosecution. Malicious prosecution targets the launching of a false case and requires proof of malice and absence of reasonable cause. An illegal detention claim targets the custody itself and can succeed even where nobody acted maliciously.
The constitutional framework
Article 21 and the right to personal liberty
Article 21 is the constitutional anchor. Indian courts have, over decades, read into it a right to be compensated when the State violates personal liberty. The reasoning is simple: a right without a remedy is hollow. If the State can imprison a citizen unlawfully and walk away by merely releasing them, the right means little.
Article 22 and the arrest safeguards
Article 22(1) guarantees that a person arrested is informed of the grounds of arrest as soon as may be, and is allowed to consult and be defended by a legal practitioner of choice. Article 22(2) requires production before the nearest magistrate within twenty-four hours of arrest, excluding travel time, and forbids detention beyond that period without the magistrate's authority. A breach of either limb is one of the cleanest routes to establishing that the custody was unlawful, because both are hard-edged and provable from the record rather than a matter of judicial impression.
Articles 32 and 226, the writ jurisdiction
A person can move the Supreme Court under Article 32 or a High Court under Article 226 by way of a writ petition. The classic writ here is habeas corpus, literally an order to produce the body, which asks the court to examine whether the detention is lawful and to release the person if it is not. Crucially, in the same proceedings, the court can also award monetary compensation as a public-law remedy for the breach of a fundamental right.
Article 300 and suits against the State
Article 300 permits the Union and the States to sue and be sued. That is the constitutional gateway for a conventional civil suit for damages, which runs on a different track from the writ remedy and is discussed below.
Four articles of the Constitution do the work in an illegal detention claim.
Article 21
No person shall be deprived of life or personal liberty except according to procedure established by law. Courts have read into it a right to be compensated.
Article 22
Guarantees that grounds of arrest are given as soon as may be, that counsel of choice may be consulted, and that production before a magistrate happens within twenty-four hours.
Articles 32 and 226
The writ jurisdiction. A habeas corpus petition asks whether the detention is lawful, and the same court can award monetary compensation as a public-law remedy.
Article 300
Permits the Union and the States to sue and be sued, which is the gateway for a conventional civil suit for damages.
The three decisions that built the remedy
Three Supreme Court judgments do most of the work in this area, and a competent petition will usually rely on all three.
Rudul Sah v. State of Bihar, decided on 1 August 1983, is where the remedy begins. The petitioner had been kept in jail for fourteen years after his acquittal. The Court held that a constitutional court can order the State to pay money for unlawful detention, and awarded a further Rs 30,000 over the Rs 5,000 already paid. The sum looks small today; the principle it established does not.
Nilabati Behera v. State of Orissa, decided on 24 March 1993, supplies the theory. The Court held that compensation awarded in a writ petition under Article 32 or Article 226 is a public-law remedy founded on strict liability, "distinct from, and in addition to, the remedy in private law for damages for the tort", and that sovereign immunity is no defence. That single holding does two things for a claimant. It removes the State's favourite defence, and it confirms that taking writ compensation does not extinguish a later civil suit.
D.K. Basu v. State of West Bengal, decided by the Supreme Court on 18 December 1996, laid down binding requirements for arrest and detention, including memos of arrest with witnesses, intimation to a relative or friend, medical examination, and proper custody records. Most of those requirements were later written into statute. Their practical value in a compensation case is evidentiary: where the arrest memo is missing, unwitnessed, or contradicted by the case diary, the State's account of a lawful arrest usually collapses.
The statutory framework, section by section
The procedure for arrest and custody was historically in the Code of Criminal Procedure, 1973 (CrPC). From 1 July 2024, the CrPC was replaced by the Bharatiya Nagarik Suraksha Sanhita, 2023 (BNSS). The familiar protections carry over into the BNSS but under new section numbers. The table below gives the current provision alongside the old one for orientation.
| Safeguard | BNSS, 2023 | CrPC, 1973 equivalent |
|---|---|---|
| When police may arrest without warrant, and the notice-of-appearance route in place of arrest | Section 35 | Sections 41 and 41A |
| Procedure of arrest and duties of the arresting officer | Section 36 | Section 41B |
| Right of the arrested person to meet an advocate of choice during interrogation | Section 38 | Section 41D |
| Arrest how made, and no unnecessary restraint | Sections 43 and 46 | Sections 46 and 49 |
| Person arrested to be informed of grounds of arrest and of the right to bail | Section 47 | Section 50 |
| Obligation to inform a relative or friend about the arrest | Section 48 | Section 50A |
| Medical examination of the arrested person | Section 53 | Section 54 |
| Health and safety of the arrested person | Section 56 | Section 55A |
| Arrested person to be taken before a Magistrate | Section 57 | Section 56 |
| No detention beyond twenty-four hours without a Magistrate's order | Section 58 | Section 57 |
| Remand where investigation is not completed in twenty-four hours | Section 187 | Section 167 |
| Maximum period for which an undertrial prisoner can be detained | Section 479 | Section 436A |
| Anticipatory bail, and the special powers of the High Court and Court of Session | Sections 482 and 483 | Sections 438 and 439 |
The BNSS also contains its own compensation provisions, which are narrower than the writ remedy but far cheaper to invoke and are routinely overlooked.
| Provision | BNSS, 2023 | CrPC, 1973 equivalent | What it does |
|---|---|---|---|
| Order to pay compensation | Section 395 | Section 357 | Lets a criminal court direct payment of compensation, including out of a fine imposed |
| Victim compensation scheme | Section 396 | Section 357A | Requires each State to run a funded scheme for victims and dependants |
| Compensation to persons groundlessly arrested | Section 399 | Section 358 | Where a person causes a police officer to arrest another and the Magistrate finds there was no sufficient ground, the Magistrate can order compensation |
| Order to pay costs in non-cognizable cases | Section 400 | Section 359 | Costs against a complainant who put the machinery in motion |
Section 399 of the BNSS is worth a second look. It is a summary, low-cost route that sits inside the very case in which the wrongful arrest happened, and it is aimed at the private person who set the police in motion rather than at the State. It will not deliver the sums a writ court can order, but for a family with limited means whose relative was picked up on a neighbour's false complaint, it is often the fastest thing available.
Where the facts also disclose an offence, the substantive criminal law now sits in the Bharatiya Nyaya Sanhita, 2023 (BNS), which replaced the Indian Penal Code. Wrongful restraint is Section 126 of the BNS (Section 341 of the IPC) and wrongful confinement is Section 127 of the BNS (Section 342 of the IPC). Prosecuting a public servant for these offences is a separate and difficult exercise, and it does not replace the compensation claim.
Note on renumbering: The Indian Penal Code (IPC) is now the Bharatiya Nyaya Sanhita, 2023 (BNS), the Code of Criminal Procedure is now the Bharatiya Nagarik Suraksha Sanhita, 2023 (BNSS), and the Evidence Act is now the Bharatiya Sakshya Adhiniyam, 2023 (BSA). If your matter began before 1 July 2024, the old codes may still apply to it. Section numbers in any article, including this one, should be checked against the current bare Act before they are relied on in a pleading.
Public-law compensation vs a civil damages suit
People often confuse two different routes. The table below contrasts them.
| Feature | Public-law compensation (writ) | Civil suit for damages (tort) |
|---|---|---|
| Where filed | Supreme Court (Art. 32) or High Court (Art. 226) | Civil court of competent jurisdiction |
| Basis | Breach of fundamental right (Article 21) | Tort of false imprisonment or negligence |
| Speed | Relatively faster; summary in nature | Slower; full trial with evidence |
| What you prove | That detention was unlawful; State liability | Detailed proof of wrong, loss, and damages |
| Amount | Often interim or exemplary; not full quantification | Can be fully quantified with proof |
| Limitation | No fixed limitation, but delay must be explained | Governed by the Limitation Act, 1963 |
| Pre-suit notice | None required | Two months' notice under Section 80 of the Code of Civil Procedure, 1908 |
| Can pursue both? | Yes, writ compensation does not bar a separate suit | Yes, but courts adjust to avoid double recovery |
The key takeaway: the writ remedy is the quicker way to obtain compensation when a fundamental right has been violated, and it does not extinguish a fuller civil claim later.
Limitation for the civil route
The Limitation Act, 1963 is unforgiving here. Under Part VII of the Schedule, which deals with suits relating to tort, Article 73 gives one year for a suit for compensation for false imprisonment, running from when the imprisonment ends, and Article 72 gives one year for a suit for compensation for an act done in pursuance of an enactment, running from the date of the act. One year is short, and the two-month notice under Section 80 of the Code of Civil Procedure, 1908 has to fit inside it. A suit against the Government also has to comply with Section 79 of the same Code on how the Government is to be named. This is the single most common reason a good tort claim is thrown out without ever being heard on merits, and it is a strong practical argument for filing the writ petition first and promptly.
Deadline warning. A suit for compensation for false imprisonment must be filed within one year of the imprisonment ending under Article 73 of the Limitation Act, 1963, and the two-month notice under Section 80 of the Code of Civil Procedure, 1908 has to be served inside that one year. Families lose sound claims on this point far more often than on the facts. The writ remedy carries no fixed limitation, which is one more reason to move the High Court first and move early.
How courts decide the amount
There is no fixed formula. Courts look at factors such as:
- The length of the unlawful detention.
- Whether there was bad faith or callousness, or merely an administrative lapse.
- The harm suffered, including loss of livelihood, loss of dignity, mental anguish, and the effect on the family.
- The conduct of the authorities once the error was pointed out, and whether they moved to correct it or defended the indefensible.
- Whether the person was in a vulnerable category, such as a juvenile, a person with a mental illness, or someone detained far from home.
- Whether the illegality was a one-off or reflects a systemic practice in that police station or prison.
The compensation is meant to acknowledge the wrong and deter repetition, not to be a precise valuation of liberty, which cannot be priced. Courts in these cases frequently describe the award as interim or as being without prejudice to a fuller civil claim, precisely so that the summary nature of the writ proceeding does not cap what a properly proved suit could yield.
There is no formula, but these are the factors that move the figure.
Length of the detention
How long the unlawful custody lasted is the first factor, and courts also look at whether the person fell into a vulnerable category.
Bad faith or lapse
Whether there was bad faith or callousness, or merely an administrative lapse. Malice increases the amount but is not a precondition to an award.
Harm actually suffered
Loss of livelihood, loss of dignity, mental anguish and the effect on the family. Courts award more where the claimant proves what the detention cost.
Conduct of the authorities
Whether they moved to correct the error once it was pointed out or defended the indefensible, and whether the illegality was a one-off or systemic.
What to do if you or someone is illegally detained
- Act fast. Time matters when someone is in custody. Note dates precisely: arrest, any release or bail order, the sentence term, and the actual release.
- Establish where the person is. Ask at the police station for the arrest memo and the entry in the station records, and get the name and rank of the arresting officer. If the police deny the arrest, that denial is itself important and should be recorded in writing.
- Gather documents. Arrest memo, remand orders, bail order, jail admission and release registers, sentence or judgment copy, and any correspondence.
- Apply for certified copies immediately. Certified copies of the bail order, the remand papers and the relevant jail register entries are the backbone of the case, and they get harder to obtain as time passes.
- Send a written representation to the jail superintendent, the Superintendent of Police and the State. Recording the illegality in writing, and the date on which it was pointed out, is what later converts a lapse into demonstrable negligence or bad faith.
- File a habeas corpus petition in the High Court under Article 226, or the Supreme Court under Article 32, seeking immediate release and, in the same petition, compensation. Ask for production of the custody records along with the reply.
- Preserve evidence of harm. Proof of lost income, salary slips, employer letters, medical records for any deterioration, and school records where a child's education was disrupted.
- Consider a parallel complaint to the State Human Rights Commission or the National Human Rights Commission, which can conduct its own inquiry and recommend compensation.
- Diarise the limitation date for a civil suit under Article 73 of the Limitation Act, 1963, and issue the Section 80 notice in good time if a suit is contemplated.
- Consult a lawyer early. Procedural missteps, such as the wrong forum or missing necessary parties, delay relief more often than weak facts do.
Who can file?
Because liberty is at stake, courts allow a habeas corpus petition to be filed not only by the detained person but also by a relative, friend, or even a public-spirited person on their behalf. This flexibility exists so that a person who cannot reach a court, because they are locked up, is not left without a remedy. A letter addressed to the court has, in appropriate cases, been treated as a petition.
Costs and timelines: indicative ranges
The figures below are indicative for Karnataka and should be confirmed locally, because court fees are governed by State legislation and professional fees vary widely with seniority, urgency and the volume of records.
| Stage | Indicative cost | Indicative timeline |
|---|---|---|
| Certified copies of jail, remand and bail records | A few hundred rupees in copying and application charges | A few days to three or four weeks |
| Court fee on a writ petition in the High Court | Nominal, typically a few hundred rupees plus process and vakalatnama charges | Same day as filing |
| Professional fees, habeas corpus petition with a compensation prayer | Roughly Rs 25,000 to Rs 1,50,000 and upwards, depending on seniority and the number of hearings | Billed across the life of the matter |
| First listing in a genuine custody emergency | Included in the above | Often within a few days of filing, sometimes on urgent mentioning |
| Release, where the illegality is clear on the record | Included in the above | Days to a few weeks |
| Disposal of the compensation prayer | Included in the above | Commonly several months, and longer where the State disputes the facts |
| Civil suit for damages, court fee | Ad valorem on the amount claimed under the applicable State court fees legislation, so a large claim carries a large fee | Payable at institution |
| Civil suit, trial to judgment | Professional fees on a stage-wise basis | Commonly three to seven years, plus appeals |
One financial point is frequently missed. A writ petition costs very little to file, while a civil suit for a large sum carries a court fee proportionate to the claim. For a family already carrying the cost of a criminal defence, that difference alone often decides the sequence in which the remedies are pursued.
The mistakes people actually make
- Waiting for the criminal case to finish. The illegality of the custody is a separate question from guilt or innocence. Waiting for an acquittal wastes the period in which records are fresh and witnesses are available.
- Asking only for release. A habeas corpus petition that prays for release and nothing else leaves the compensation claim behind once the person walks out. Plead the facts of the illegality and pray for compensation in the same petition.
- Not fixing the dates. Vague pleading such as "he was kept for a long time after bail" invites a vague reply. A dated chronology, tied to certified copies, is what wins these cases.
- Suing the wrong party. The claim in a writ ordinarily lies against the State and the department concerned. Naming only an individual constable, without arraying the State, creates an avoidable objection.
- Letting the limitation for a suit expire. One year under Article 73 of the Limitation Act, 1963 goes quickly, especially once the two-month Section 80 notice period is built in.
- Treating a departmental apology or an ex gratia payment as closure. Accepting a small ex gratia sum without a reservation of rights can be used against the claimant later.
- Not documenting the moment of release. Families understandably take the person home and think no further. The release warrant, the gate register entry and the exact date and time of release are the proof that the overstay happened.
- Confusing preventive detention with ordinary illegal detention. Preventive detention has its own statutory scheme, its own timelines for grounds and representation, and its own advisory board procedure. The challenge is framed differently.
- Unexplained delay. The writ jurisdiction has no fixed limitation, but a petition filed years later without explaining the gap invites the court to decline relief on the ground of laches.
- Failing to quantify loss. Courts award more where the claimant proves what the detention actually cost: the job lost, the wages foregone, the treatment paid for, the education interrupted.
A practitioner's note
In practice, the hardest part of these cases is almost never the law. Rudul Sah and Nilabati Behera settled the principle decades ago and the State rarely argues it cannot be made to pay at all. The difficulty is documentary. Custody records are maintained by the very institution whose default is in question, and they are not always produced willingly or completely. The petitions that succeed are the ones where the lawyer has, before filing, put the illegality in writing to the jail superintendent and the police, applied for certified copies of the remand and release records, and built a chronology in which every date is backed by a document. When that groundwork is done, the State's reply usually has to concede the dates, and the argument narrows to quantum. When it is not done, the reply blames a communication gap between the court, the jail and the police, and the matter drifts through adjournments while the family runs out of money. The other recurring pattern worth naming is that families come in months late, because the relief of getting the person home displaces everything else, and by then a civil suit is often already time-barred under Article 73. If there is one thing to take away, it is to record the illegality in writing on the day it is discovered, even before deciding whether to litigate.
Frequently Asked Questions
1. Can I get compensation if I was kept in jail beyond my sentence?
Yes. Detention beyond the lawful term of a sentence is a textbook case of illegal detention, and courts have awarded compensation in such situations. Verify the exact dates against your judgment, the remission orders, the set-off for pre-trial custody, and the jail records.
2. Which court do I approach for compensation for illegal detention?
You can file a writ petition in the High Court under Article 226 or the Supreme Court under Article 32. A habeas corpus petition can also seek compensation in the same proceeding. For most people the High Court is the practical forum, because it is closer, cheaper and can summon the custody records quickly.
3. Is there a time limit to claim?
The writ remedy has no rigid limitation period, but unexplained delay can defeat the claim on the ground of laches. A separate civil damages suit is governed by the Limitation Act, 1963, and Article 73 of its Schedule allows one year from the end of the imprisonment for a false imprisonment claim. Act promptly and take advice.
4. Will I have to sue the individual officer?
Usually the claim is against the State, which is vicariously liable. In cases of clear bad faith, courts may also direct that the amount be recovered from the officer responsible, but that is the court's call and not something the claimant needs to establish to succeed against the State.
5. Does accepting writ compensation stop me from filing a civil suit?
No. Nilabati Behera holds that public-law compensation is distinct from, and in addition to, the private-law remedy in tort. Courts adjust the figures to prevent double recovery, but the writ award does not extinguish the suit.
6. What if the detention was due to a clerical or paperwork error, not malice?
Compensation can still be awarded. Even a negligent or careless deprivation of liberty violates Article 21. Malice increases the amount but is not a precondition, and sovereign immunity is not a defence to a public-law claim.
7. Can a relative file on behalf of the detained person?
Yes. Habeas corpus petitions may be filed by a relative, friend, or public-spirited person when the detained individual cannot do so themselves.
8. I was arrested and later acquitted. Is that illegal detention?
Not automatically. An acquittal means the prosecution failed to prove the case, not that the arrest lacked authority. You would need to show a defect in the authority for the arrest or a breach of the procedural safeguards, such as grounds of arrest never being communicated under Section 47 of the BNSS, or production before a magistrate beyond twenty-four hours contrary to Section 58.
9. Someone gave a false complaint and the police arrested me. Is there a cheaper remedy than a writ?
Possibly. Section 399 of the BNSS, which corresponds to Section 358 of the old CrPC, allows the Magistrate hearing the case to order compensation where a person caused a police officer to arrest another without sufficient ground. It is a summary remedy within the existing case, so it costs very little, though the amounts are modest compared with a writ award.
10. Can I also complain to a human rights commission?
Yes, and it can run alongside the court proceedings. The National and State Human Rights Commissions can inquire into custodial illegality and recommend compensation. A commission recommendation does not replace a court order, but the inquiry record it generates is often useful evidence in the writ petition.
11. What documents should I collect before meeting a lawyer?
The arrest memo, all remand orders, the bail order and the release warrant, jail admission and release register entries, the judgment or sentence order if any, any written complaints already sent, and proof of financial loss such as salary slips or an employer's letter.






