Explainer · Criminal Law · BNS
BNS Section 312: Attempt to Commit Robbery or Dacoity When Armed With a Deadly Weapon (IPC 398 Mapping) (2026)
Section 312 of the Bharatiya Nyaya Sanhita (BNS) applies when a person, while armed with a deadly weapon, attempts to commit robbery or dacoity. The BNS is the new criminal code in force since 1 July 2024, and Section 312 replaced Section 398 of the Indian Penal Code (IPC). The punishment is imprisonment of not less than seven years, with no fine prescribed. Watch one common mix-up: belonging to a gang of dacoits is not Section 312, it is Section 310(6) of the BNS. The page sets out what Section 312 truly catches, the old-to-new mapping, the seven-year floor, and the trap to avoid. Last verified November 2026.
- New section: attempt to commit robbery or dacoity when armed with a deadly weapon is Section 312 of the BNS.
- Old section: it replaced Section 398 of the IPC. (Belonging to a gang of dacoits is Section 310(6), not 312.)
- Punishment: imprisonment of not less than seven years. The section prescribes no fine, and the seven years is a statutory minimum.
- Key point: the robbery or dacoity need not be completed; the armed attempt is enough.
01Reading 312 against the right offence
The BNS has governed new offences since 1 July 2024, in place of the IPC, and the robbery group was both renumbered and partly merged. An attempt to commit robbery or dacoity while armed with a deadly weapon, earlier Section 398 of the IPC, is now Section 312 of the BNS.
There is an error to fix at the outset. Many look up "Section 312" expecting the offence of belonging to a gang of dacoits. Under the BNS, that offence is Section 310(6), tucked inside the consolidated dacoity provision. Section 312 is the separate armed-attempt offence. Matching the number to the right offence name keeps you from citing the wrong section.
02What Section 312 covers
Section 312 of the BNS applies where the offender is armed with a deadly weapon at the time of attempting to commit robbery or dacoity. It fixes a minimum sentence of seven years.
The offence is about the attempt, not a completed robbery or dacoity. What lifts it into this section is that the person carried a deadly weapon while making the attempt. So even an attempt that fails attracts the seven-year floor.
A worked example
Three men wait outside a jeweller at closing time, one of them holding a country-made pistol, and rush the shutter as the owner locks up, but a passing patrol scatters them before anything is taken. Nothing was stolen and no shot was fired, yet because they were armed and were attempting the robbery, Section 312 bites and the seven-year minimum applies. Had the weapon actually been used, or grievous hurt caused, the offence would fall under Section 311 of the BNS instead.
03What has to be established
The prosecution has to make out two things:
- that the accused attempted to commit robbery or dacoity;
- that, at the time of the attempt, the accused was armed with a deadly weapon.
The robbery or dacoity need never be completed. Being armed is the aggravating factor. The dacoity offences themselves, including the five-person threshold, are set out in Section 310 of the BNS. If the weapon is actually used, or grievous hurt is caused, Section 311 applies instead.
04Old to new: IPC 398 to BNS 312
Section 398 of the IPC, attempt to commit robbery or dacoity when armed with a deadly weapon, is now Section 312 of the BNS. The seven-year minimum comes over unchanged.
| Point | Old law (IPC) | New law (BNS) |
|---|---|---|
| Dacoity (definition and punishment) | Sections 391, 395 | Section 310 |
| Belonging to a gang of dacoits | Section 400 | Section 310(6) |
| Robbery or dacoity with deadly weapon or grievous hurt | Section 397 | Section 311 |
| Attempt to commit robbery or dacoity when armed | Section 398 | Section 312 |
The armed-attempt test and the seven-year floor are unchanged, so Section 398 rulings continue to steer Section 312.
05The seven-year floor and how it is tried
The punishment under Section 312 is imprisonment for a term which shall not be less than seven years. Unlike most property offences in this chapter, the section prescribes no fine; it fixes only the imprisonment. The seven-year figure is a statutory minimum, not a ceiling, so the court cannot sentence below it where the section applies.
Procedurally, Section 312 is cognizable, so the police need no prior court nod to investigate; it is non-bailable, so bail is not a matter of right; and it is triable by the Court of Session.
A minimum, even for an attempt
The striking feature is that even an attempt, if the offender is armed, draws a floor of seven years. The law treats an armed attempt at robbery or dacoity as a grave danger to life, which is why the floor bites regardless of whether anything is actually taken.
06What is new, and the trap to avoid
Here the shift is really just the number. The armed-attempt element and the seven-year minimum carry over from Section 398 of the IPC, so older precedent still applies.
The main practical point is to steer clear of the "gang of dacoits" mix-up. That offence is Section 310(6) of the BNS, inside Section 310. Section 312 is the armed-attempt offence. Where a weapon is actually used, see Section 311 of the BNS.
07Claw for armed-attempt cases
Claw is an all-in-one legaltech platform for Indian advocates, law firms, and corporate legal teams, combining AI-based case search, an AI legal assistant (Legal GPT), case management, and compliance automation across all Indian courts and tribunals.
Prosecutions under Section 312 depend on proof of the attempt and of the accused being armed, and on how courts have fixed the seven-year minimum, a body of reasoning carried over from the old Section 398. With Claw you can search that case law by section, party or advocate across 9,102 courts, benches and forums, reaching the Supreme Court from 1950 and the High Courts from 1990, with answers in under 5 seconds from more than 30 crore judgments.
Anything you upload to Claw is kept out of its AI training set, so your matters stay confidential. Create a free Claw account to study how armed-attempt cases have been sentenced, or to keep track of a live matter by party or advocate name. To look across Indian law more widely, see case search across Indian courts.
08Sources and further reading
- India Code (the BNS, 2023 as passed): indiacode.nic.in
- PRS Legislative Research (BNS versus IPC, section by section): prsindia.org
- devgan.in, Section 312 (bare provision and classification): devgan.in
- Claw (legal research): clawlaw.in
Treat this as general information rather than legal advice. Amendments and decisions keep changing the law, so look up the current provision and ask counsel before taking a step.
09Frequently asked questions
Is Section 312 the offence of belonging to a dacoit gang?
No. Belonging to a gang of dacoits is Section 310(6) of the BNS, which was Section 400 of the IPC. Section 312 is an attempt to commit robbery or dacoity while armed with a deadly weapon, which was Section 398 of the IPC.
What is the minimum sentence under Section 312?
Imprisonment for a term which shall not be less than seven years, with no fine prescribed. The seven years is a statutory minimum, so the court cannot go below it where the section applies.
Must the robbery succeed for Section 312 to apply?
No. Section 312 applies to an attempt to commit robbery or dacoity while armed with a deadly weapon. The offence is complete on the armed attempt, even if the robbery or dacoity fails.
Where is the line between Section 312 and Section 311?
Section 312 covers an armed attempt at robbery or dacoity. Section 311 covers robbery or dacoity where a deadly weapon is actually used, grievous hurt is caused, or death or grievous hurt is attempted. Both carry a seven-year minimum.
Do IPC Section 398 judgments still guide Section 312?
Largely yes. Because the armed-attempt element and the seven-year minimum carry over, judgments on Section 398 of the IPC still guide how Section 312 of the BNS is read.
Can Claw find Section 312 cases and hearings?
Yes. A section, party or advocate search on Claw returns the relevant cases, orders and hearings from 9,102 courts, benches and forums in under 5 seconds. Claw tracks and researches the matter but does not give legal advice.