No law
India has no specific statute that bans moonlighting outright
Contract-based
Legality is governed almost entirely by your offer letter/employment agreement
2022
Year major IT firms (TCS, Infosys, Wipro) began enforcing crackdowns
Termination
Possible consequence for undisclosed dual employment, depending on contract terms

There's no Indian statute that broadly criminalizes or explicitly bans taking on a second job. Whether moonlighting is "allowed" for you specifically comes down almost entirely to what you signed: your offer letter, employment agreement, and any code-of-conduct or IT policy documents. Most Indian IT companies' standard offer letters include a dual-employment clause — typically wording to the effect that you may not work for or be employed by another organization while employed there, with or without explicit reference to "moonlighting."

Read Your Actual Offer Letter Before Assuming Anything "Moonlighting is fine because there's no law against it" is a common but risky misreading. Your employer doesn't need a law — they need your signed contract. If your offer letter or appointment letter contains a dual-employment or exclusivity clause (most do), violating it is a contractual breach your employer can act on, regardless of what the law says generally.

How Companies Have Actually Enforced This

Company TypeTypical Stance
Large IT services (TCS, Infosys, Wipro)Took visible, public stances against undisclosed dual employment starting 2022; some terminated employees found moonlighting without disclosure
Some IT firms with formal "extrinsic project" policiesA minority of companies introduced formal moonlighting policies allowing disclosed, approved side work — check if your employer is one of these rather than assuming a blanket ban
Startups and product companiesPolicies vary widely; many are silent on moonlighting specifically but still have standard exclusivity/conflict-of-interest clauses

A Practical Risk Matrix

ActivityRisk LevelWhy
Building a personal open-source project, no incomeVery lowNot employment; rarely restricted even under strict clauses
Freelancing for pay, undisclosed, during work hoursSevereCombines contract breach with potential time/productivity theft from your employer
Freelancing for pay, undisclosed, strictly outside work hours, unrelated domainModerateLikely still breaches a literal dual-employment clause even if low real-world conflict exists
A side project that competes directly with your employer's businessSevereConflict of interest concerns apply on top of any dual-employment clause
Disclosed and approved side work under a company's formal moonlighting policyLowYou're operating within explicit permission — the safest path if available

How to Earn Extra Income Without the Risk

  1. Read your actual contract first. Don't assume — check for dual-employment, exclusivity, or non-compete clauses specifically.
  2. Ask if your company has a formal extrinsic-work policy. Some do, and getting approval is the cleanest path to side income with zero risk.
  3. If undisclosed work is genuinely necessary, keep it strictly outside work hours, in a domain unrelated to your employer's business, and avoid using any company resources, time, or proprietary knowledge.
  4. Consider lower-risk alternatives to direct freelancing — investing, content creation/teaching in a non-competing domain, or building toward a side project you might eventually leave to pursue full-time rather than running parallel indefinitely.
  5. If your goal is meaningfully more income, evaluate whether a job change or raise is actually the lower-risk path — see our salary negotiation guide — rather than carrying ongoing contractual risk.
The One Universal Rule Regardless of company policy specifics, never use your employer's time, equipment, codebase access, or proprietary information for outside work. This crosses from a contractual gray area into clear misconduct and is the single fastest way to turn a moonlighting situation into a for-cause termination with no ambiguity.