The Indian Penal Code, 1860 (IPC) contains sections numbered from Section 1 to Section 511. So, the standard answer to “How many sections are there in IPC?” is 511 sections. However, over its long history, some individual sections were repealed, omitted or inserted through amendments, so “511” refers to the Code’s numbered structure rather than 511 provisions all remaining operative unchanged.
More importantly, IPC is no longer India’s current substantive criminal code. It was replaced by the Bharatiya Nyaya Sanhita, 2023 (BNS), which came into force on 1 July 2024.
Personally, I think this update is essential whenever we answer an IPC question now. If you're preparing for an exam, simply memorising “IPC = 511” without knowing that BNS has replaced it can leave your answer outdated.

IPC Structure
The IPC was enacted as Act No. 45 of 1860 and provided India's general penal code. Its final numbered provision was Section 511, which dealt with punishment for attempts to commit certain offences.
A simple way to remember the old criminal-law framework is:
Law | Main purpose |
|---|---|
IPC, 1860 | Defined offences and punishments |
CrPC, 1973 | Criminal procedure |
Indian Evidence Act, 1872 | Rules of evidence |
For students, I find understanding this division much easier than trying to memorise hundreds of sections without knowing what each law actually did.
What IPC Covered
IPC covered a huge range of criminal offences and general principles, including offences against the State, offences affecting the human body, theft, robbery, cheating, criminal breach of trust, defamation, criminal intimidation and other offences.
Some IPC section numbers became so commonly used that even people without a legal background recognised them.
But laws aren't static. Sections were amended, repealed and interpreted by courts throughout the IPC's more than 160-year history. That's why I would always check the latest applicable legislation before relying on an old IPC section for an actual legal matter.
IPC vs. CrPC
IPC and CrPC were not the same thing.
IPC primarily answered:
What constitutes an offence, and what punishment can apply?
CrPC primarily answered:
How will the criminal justice process—investigation, arrest, bail, trial and related procedures—work?
I personally remember it as:
IPC = crime + punishment
CrPC = procedure
Both have now been replaced under India's new criminal-law framework.
Current BNS Position
The Bharatiya Nyaya Sanhita, 2023 replaced the IPC from 1 July 2024. India Code records its enforcement date as 1 July 2024.
BNS has 358 numbered sections across 20 chapters. Section 358 itself contains the repeal-and-savings provisions for IPC.
So the easiest comparison is:
IPC → 511 numbered sections → old criminal code
BNS → 358 sections → current criminal code
One important detail is that repeal doesn't simply erase older cases. BNS Section 358 contains savings provisions protecting certain liabilities, investigations and proceedings relating to the repealed IPC.
FAQs
How many sections were there in IPC?
The IPC ran from Section 1 through Section 511.
Is IPC still applicable in India?
IPC was repealed and replaced by BNS from 1 July 2024, subject to repeal-and-savings provisions for earlier matters.
How many sections are there in BNS?
BNS contains 358 sections.
What replaced IPC?
The Bharatiya Nyaya Sanhita, 2023 replaced the Indian Penal Code.
Must Read: What You Need to Know About Legal Rights and Compensation

