IPC Section 79 in BNS: BNS Section 17
Section 79 of the Indian Penal Code, 1860, Act done by a person justified, or by mistake of fact believing himself justified, by law, is now Section 17 of the Bharatiya Nyaya Sanhita, 2023.
Browse old and new laws
IPC 79 and the BNS
| IPC | BNS | BNS heading |
|---|---|---|
| 79 | 17 | Act done by a person justified, or by mistake of fact believing himself justified, by law. |
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
- IV: General exceptions
- Now in the BNS
- Section 17
- Structure
- Illustrations
- Length
- 116 words
- Selected Supreme Court judgments citing it
- 5 in the saved selection
Citing IPC Section 79 after 1 July 2024
In a pleading or submission under the new code, the usual form is:
- Section 17 of the Bharatiya Nyaya Sanhita, 2023 (formerly Section 79 of the Indian Penal Code, 1860)
The saved selection lists 5 Supreme Court judgments citing IPC Section 79 in two or more paragraphs, with up to five selected per section. This is not the collection total. 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 79 in Supreme Court precedents
Search how benches applied this section. Each authority opens at the paragraph it relies on. Five research answers are free.
What changed in the text
Mapped-provision comparison: IPC Section 79 and BNS Section 17.
Leaving aside punctuation, capital letters and amendment brackets, BNS Section 17 repeats IPC Section 79 word for word: 116 words in each. Both texts have Illustrations.
Worked out word by word from the two official texts. 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.
The Supreme Court judgments in Vakilat's collection that cite IPC Section 79 in the most paragraphs, at least two, newest first where they tie. Read a judgment before you rely on it.
RAJKAPOOR S/O PRITHVIRAJ KAPOOR v. LAXMAN S/O KISHANLAL GAVAI
14 December 1979 · 1980 AIR 605 · cites the section in 7 paragraphs
Sushil Ansal v. State Through CBI
5 March 2014 · cites the section in 6 paragraphs
Satyavir Singh Rathi v. State thr. C.B.I.
2 May 2011 · cites the section in 6 paragraphs
Aveek Sarkar & Anr. v. State of West Bengal & Ors.
3 February 2014 · cites the section in 5 paragraphs
STATE OF ORISSA v. BHAGABAN BARIK
2 April 1987 · 1987 AIR 1265 · cites the section in 5 paragraphs
Official text
IPC Section 79: Act done by a person justified, or by mistake of fact believing himself justified, by law
Nothing is an offence which is done by any person who is justified by law, or who by reason of a mistake of fact and not by reason of a mistake of law in good faith, believes himself to be justified by law, in doing it. Illustration A sees Z commit what appears to A to be a murder. A, in the exercise, to the best of his judgment exerted in good faith, of the power which the law gives to all persons of apprehending murderers in the fact, seizes Z, in order to bring Z before the proper authorities. A has committed no offence, though it may turn out that Z was acting in self-defence.
Indian Penal Code, 1860, page 24
Where it sits in the Bharatiya Nyaya Sanhita, 2023, opening words only:
BNS Section 17: Act done by a person justified, or by mistake of fact believing himself justified, by law
Nothing is an offence which is done by any person who is justified by law, or who by reason of a mistake of fact and not by reason of a mistake of law in good faith, believes himself to be justified by law, in doing it. …
Full text of BNS Section 17Chapter and nearby sections
IPC Section 79 is in Chapter IV (General exceptions) of the Indian Penal Code, 1860, which runs over Sections 76 to 106. In the BNS, Section 17 is in Chapter III (General exceptions), which runs over Sections 14 to 44.
Nearby sections of the IPC
- IPC Section 76, Act done by a person bound, or by mistake of fact believing himself bound, by law, now BNS Section 14
- IPC Section 77, Act of Judge when acting judicially, now BNS Section 15
- IPC Section 78, Act done pursuant to the judgment or order of Court, now BNS Section 16
- IPC Section 80, Accident in doing a lawful act, now BNS Section 18
- IPC Section 81, Act likely to cause harm, but done without criminal intent, and to prevent other harm, now BNS Section 19
- IPC Section 82, Act of a child under seven years of age, now BNS Section 20
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;”
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 79 in BNS?
Section 79 of the Indian Penal Code, 1860, Act done by a person justified, or by mistake of fact believing himself justified, by law, is now Section 17 of the Bharatiya Nyaya Sanhita, 2023.
Is IPC Section 79 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 79 to the BNS?
Mapped-provision comparison: IPC Section 79 and BNS Section 17. Leaving aside punctuation, capital letters and amendment brackets, the wording did not change.
Which Supreme Court judgments cite IPC Section 79?
The saved selection lists 5 Supreme Court judgments citing IPC Section 79 in two or more paragraphs, on this page. It includes up to five per section, not a total count of the current collection.
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 79 in Supreme Court judgments
Ask Vakilat a question about IPC Section 79 in plain English. Each authority in the answer opens at the paragraph it relies on. Five research answers are free.
Start free