Section 345 of the Indian Penal Code, 1860, Wrongful confinement of person for whose liberation writ has been issued, is now Section 127(5) of the Bharatiya Nyaya Sanhita, 2023. Under the BNS the offence is cognizable and bailable, triable by a Magistrate of the first class.

BNS 127(5)cognizable, bailableRead official textAsk Vakilat →
Browse old and new laws

IPC 345 and the BNS

IPCBNSBNS heading
345127(5)Wrongful confinement.

Bailable, cognizable and which court

SectionOffencePunishmentCognizableBailableTriable by
IPC 345Keeping any person in wrongful confinement, knowing that a writ has been issued for his liberation.Imprisonment for 2 years, in addition to imprisonment under any other section.CognizableBailableMagistrate of the first class
BNS 127(5)Keeping any person in wrongful confinement, knowing that a writ has been issued for his liberation.Imprisonment for 2 years in addition to any term of imprisonment to under any other section and fine.CognizableBailableMagistrate of the first class

As printed in the First Schedule of the Bharatiya Nagarik Suraksha Sanhita, 2023 for BNS offences, and of the Code of Criminal Procedure, 1973 for IPC offences, with each “Ditto” written out as the entry it repeats.

Looking for BNS Section 345 (Property mark)? See BNS Section 345 in IPC, which maps to IPC Sections 479, 481 and 482.

At a glance

Act
Indian Penal Code, 1860
Status
Replaced on 1 July 2024 by the Bharatiya Nyaya Sanhita, 2023; still applies to matters it saves
Chapter
XVI: Of offences affecting the human body
Now in the BNS
Section 127(5)
Structure
A single paragraph
Length
58 words
Figures in the text
two years
Classification
Cognizable and bailable under the IPC
Selected judgments citing BNS counterpart
1 distinct judgments in the saved selection

Citing IPC Section 345 after 1 July 2024

In a pleading or submission under the new code, the usual form is:

  • Section 127(5) of the Bharatiya Nyaya Sanhita, 2023 (formerly Section 345 of the Indian Penal Code, 1860)

Earlier judgments are read against the new text: where the wording changed, check that the reasoning still fits before you rely on it.

Research IPC Section 345 in Supreme Court precedents

Search how benches applied this section. Each authority opens at the paragraph it relies on. Five research answers are free.

Start free

What changed in the text

Mapped-provision comparison: IPC Section 345 and BNS Section 127(5).

All 58 words of IPC Section 345 appear in BNS Section 127(5) in the same order, leaving aside punctuation, capital letters and amendment brackets. BNS Section 127(5) adds 7 words, for 65 words in all, and the wording differs in one place. Figures and punishments named in both texts: two years.

IPC Section 345 readsBNS Section 127(5) readsPlaces
of this Chapter. of this Chapter and shall also be liable to fine. 1

Worked out word by word from the two official texts. Struck-through words are those the new text leaves out at that point, and underlined words are those it adds. Read the official text before you rely on it.

Supreme Court judgments citing it

Selected judgments from the 16 October 2026 snapshot, up to five per section. These lists are not total counts for Vakilat's current collection. Selection requires citations in at least two paragraphs and ranks by paragraph count, then newest first on a tie.

Supreme Court judgments in Vakilat's collection citing the counterpart provision this section became. Read each judgment against the current wording before relying on it.

  1. PRAJWALA v. UNION OF INDIA & ORS.

    29 May 2026 · 2026 INSC 609 · cites the section in 2 paragraphs

1 selected judgment cites BNS Section 127, which it became: see it on its page.

Official text

IPC Section 345: Wrongful confinement of person for whose liberation writ has been issued

Whoever keeps any person in wrongful confinement, knowing that a writ for the liberation of that person has been duly issued, shall be punished with imprisonment of either description for a term which may extend to two years in addition to any term of imprisonment to which he may be liable under any other section of this Chapter.

Indian Penal Code, 1860, page 81

Where it sits in the Bharatiya Nyaya Sanhita, 2023, opening words only:

BNS Section 127: Wrongful confinement

(1) Whoever wrongfully restrains any person in such a manner as to prevent that person from proceedings beyond certain circumscribing limits, is said “wrongfully to confine” that person. Illustrations. (a) A causes Z to go within a walled space, and locks Z in. Z is thus prevented from proceeding in any direction beyond the circumscribing line of wall. …

Full text of BNS Section 127

Chapter and nearby sections

IPC Section 345 is in Chapter XVI (Of offences affecting the human body) of the Indian Penal Code, 1860, which runs over Sections 299 to 377. In the BNS, Section 127 is in Chapter VI (Of offences affecting the human body), which runs over Sections 100 to 146.

Nearby sections of the IPC

  • IPC Section 342, Punishment for wrongful confinement, now BNS Section 127(2)
  • IPC Section 343, Wrongful confinement for three or more days, now BNS Section 127(3)
  • IPC Section 344, Wrongful confinement for ten or more days, now BNS Section 127(4)
  • IPC Section 346, Wrongful confinement in secret, now BNS Section 127(6)
  • IPC Section 347, Wrongful confinement to extort property, or constrain to illegal act, now BNS Section 127(7)
  • IPC Section 348, Wrongful confinement to extort confession, or compel restoration of property, now BNS Section 127(8)

Which code applies

The Bharatiya Nyaya Sanhita came into force on 1 July 2024. An offence committed before that date is still punished under the Indian Penal Code, because the BNS keeps the repealed Code's penalties and proceedings alive.

“Notwithstanding the repeal of the Code referred to in sub-section (1), it shall not affect,— … (c) any penalty, or punishment incurred in respect of any offences committed against the Code so repealed;”

BNS section 358(2)

Which code governs your matter can turn on the date of the offence and the stage the case had reached on 1 July 2024. Read the official text before you rely on any table, and see IPC or BNS: which criminal law applies for the savings sections worked through.

Frequently asked questions

What is IPC Section 345 in BNS?

Section 345 of the Indian Penal Code, 1860, Wrongful confinement of person for whose liberation writ has been issued, is now Section 127(5) of the Bharatiya Nyaya Sanhita, 2023. Under the BNS the offence is cognizable and bailable, triable by a Magistrate of the first class.

Is IPC Section 345 still in force?

The Indian Penal Code, 1860 was replaced by the Bharatiya Nyaya Sanhita, 2023 on 1 July 2024. An offence committed before that date is still punished under the Indian Penal Code, because the BNS keeps the repealed Code's penalties and proceedings alive.

What changed from IPC Section 345 to the BNS?

Mapped-provision comparison: IPC Section 345 and BNS Section 127(5). The wording changed in one place: no words went and 7 words came in. The comparison table on this page shows each one.

Was IPC Section 345 bailable and cognizable?

Under the IPC the offence was cognizable and bailable. Under the BNS the offence is cognizable and bailable, triable by a Magistrate of the first class.

Sources

Section numbers follow the correspondence table prepared by the Central Academy for Police Training, Bhopal, of the Bureau of Police Research and Development. Headings are taken from the Indian Penal Code, 1860 and the Bharatiya Nyaya Sanhita, 2023 as published. The text of each section is reproduced from those official copies: the Gazette of India for the 2023 Acts and India Code for the earlier ones, with page furniture and amendment footnotes left out. The judgments citing a section are found by Vakilat's index of the Supreme Court's judgments, and each links to the court's official copy. The official text governs: read the section itself before you rely on it.

Research IPC 345 in Supreme Court judgments

Ask Vakilat a question about IPC Section 345 in plain English. Each authority in the answer opens at the paragraph it relies on. Five research answers are free.

Start free