You’re writing a formal email, a research paper, or a business report. Everything is going smoothly until you hit that one sentence and suddenly stop. Should it be “the process by which the data was analyzed” or “the process in which the data was analyzed”? Both phrases sound credible. Both feel grammatically defensible. Yet only one is correct for what you’re trying to say.
This is one of the most common grammar traps in formal English writing. The confusion is understandable because both phrases share the same relative pronoun, “which,” and are frequently found in academic texts, legal documents, and professional writing. But the preposition doing the work here, either “by” or “in,” changes the meaning of the whole sentence entirely.
Once you understand the logic behind each phrase, the right choice becomes automatic. This guide breaks it all down with clear rules, real-world examples, comparison tables, and practical memory tricks so you can write with precision and confidence every time.
Understanding the Basics: Relative Clauses and Prepositions
Before diving into the specific difference, it helps to understand what’s actually happening grammatically when you use these phrases.
Both “by which” and “in which” are examples of prepositional relative clauses. A relative clause is a dependent clause that adds descriptive information about a noun in the sentence. It typically begins with a relative pronoun such as “who,” “that,” or “which.” When you place a preposition before “which,” that preposition carries its own distinct meaning into the clause and changes the type of information being communicated.
The key insight is this: the preposition controls the meaning, not the pronoun.
“Which” on its own is neutral. It simply refers back to the noun that came before it. But “by” and “in” are not neutral. Each preposition has its own semantic weight, and swapping one for the other can subtly or significantly alter what a sentence means.
This is why choosing between “by which” and “in which” is not just a grammar rule to memorize. It is a decision about meaning.
When Do You Use “By Which”?
“By which” is used when you want to describe the method, means, mechanism, or process through which something happens.
The preposition “by” indicates agency, instrument, or means. When you attach it to “which,” you create a relative clause that explains how something is done or through what means a result is achieved.
A reliable test: if you can naturally substitute “by means of which,” “through which,” or “how” without losing the core meaning of your sentence, then “by which” is almost certainly the right choice.
Core situations where “by which” is correct:
- When describing a method or procedure: The technique by which scientists measure carbon levels is highly sophisticated.
- When referring to a mechanism or system: The algorithm by which the software ranks results determines user experience.
- When explaining a legal or regulatory process: The statute by which this court exercises jurisdiction remains in force.
- When indicating a standard or criterion: The benchmark by which employees are evaluated was revised last year.
- When showing cause and effect: The process by which cells divide is called mitosis.
Notice that in every example above, the focus is on how something happens, not where or in what context it happens. That distinction is the heart of the rule.
“By Which” in Different Fields
Legal writing: Lawyers and judges rely on “by which” to pinpoint the authority or instrument behind an action. “The regulation by which environmental standards are enforced has not been updated since 2010.” Here, the regulation is the means of enforcement.
Scientific writing: Researchers use “by which” to describe biological, chemical, and physical processes. “The mechanism by which the drug inhibits viral replication is still under investigation.” The mechanism is the method, not a location.
Business and management: Professionals use it to define procedures and criteria. “The framework by which project success is measured includes cost, time, and quality indicators.” The framework is the evaluative process.
When Should You Use “In Which”?
“In which” is used when you want to describe the place, context, situation, time frame, or set of conditions within which something occurs.
The preposition “in” indicates containment, context, or enclosure. When attached to “which,” it creates a relative clause that explains where or under what circumstances something happens, whether that location is physical or abstract.
A reliable test: if you can naturally replace “in which” with the adverb “where” (or “when” for time-based contexts) without changing the meaning, then “in which” is likely the right choice. The key difference is that “in which” sounds more formal and is preferred when the antecedent noun is an abstract concept rather than a physical place.
Core situations where “in which” is correct:
- When describing a physical location: The laboratory in which the experiment was conducted had strict safety protocols.
- When referring to an abstract context or situation: The environment in which children learn shapes their cognitive development.
- When specifying a time period or event: The decade in which these reforms occurred was marked by political turbulence.
- When indicating a document, book, or text: The chapter in which the author addresses climate change is the most compelling.
- When describing conditions or circumstances: The conditions in which the refugees lived were difficult.
In each case, the “which” refers to a space, a context, or a setting, something the action takes place inside of, not a process or tool through which the action is carried out.
“In Which” in Different Fields

Academic writing: Scholars use “in which” to establish the context of research. “The study explores the socioeconomic framework in which income inequality develops.” The framework is the environment, not the method.
Literary analysis: Critics use it to reference textual locations. “The passage in which the protagonist confronts his fears marks the novel’s turning point.” The passage is a location within the text.
Technical writing: Developers and engineers use “in which” to specify operational environments. “The server environment in which the application runs must support TLS 1.3 or higher.” This refers to the context, not the process.
How Do Prepositions Change Meaning?
This is where things get genuinely interesting from a linguistic standpoint. Prepositions are small words, but they carry enormous semantic weight. Swapping “by” for “in,” or vice versa, can shift the entire interpretation of a sentence.
Consider this pair:
“The process by which students are evaluated was reformed.”
“The process in which students participate was reformed.”
Both sentences are grammatically correct. Both use “process” as the antecedent. But they communicate fundamentally different things.
The first sentence focuses on how evaluation happens. The second focuses on a process within which students are participating. The preposition determines whether “process” is being used as a mechanism (by which) or as a context (in which).
Here is a broader look at how the two prepositions function differently:
| Feature | “By Which” | “In Which” |
| Core question answered | How? By what means? | Where? In what context? |
| Preposition function | Indicates instrument or means | Indicates location or container |
| Noun type it follows | Methods, processes, criteria, rules | Places, situations, events, texts |
| Natural substitute | “through which,” “by means of which” | “where” (for physical/abstract space) |
| Register | Formal | Formal |
| Common fields | Legal, scientific, business | Academic, literary, technical |
The table above makes clear that these are not interchangeable phrases. Each one occupies a specific grammatical and semantic role.
The Noun Antecedent Is Your Biggest Clue
One of the most practical ways to choose between the two phrases is to look carefully at the noun that “which” refers back to. Grammarians call this noun the “antecedent.”
Ask yourself: is this noun the kind of thing that contains or hosts an event? Or is it the kind of thing that enables or drives an action?
- Method, technique, process, procedure, mechanism, rule, law, standard → these are instruments → use “by which”
- Place, environment, situation, context, event, period, chapter, document → these are containers or settings → use “in which”
This antecedent-first approach gives you a reliable shortcut when you’re uncertain.
Examples Showing Both Phrases
Seeing these phrases placed side by side in similar sentence structures helps cement the difference. The following examples are drawn from academic, legal, business, and everyday writing contexts.
Correct Usage Examples
“By Which” used correctly:
- The mechanism by which the immune system identifies foreign cells is called antigen recognition.
- The law by which citizens are required to file taxes is updated annually.
- The method by which researchers collected data was rigorously peer-reviewed.
- The criteria by which candidates are judged should be made transparent before the interview.
- The algorithm by which the platform recommends content has been criticized for creating filter bubbles.
- The procedure by which complaints are filed must be followed exactly.
- The standard by which medical professionals are licensed varies from country to country.
“In Which” used correctly:
- The country in which the treaty was signed has since changed its government.
- The seminar in which we discussed data privacy lasted nearly four hours.
- The chapter in which the author reveals the antagonist’s motive is the most gripping.
- The environment in which startups flourish requires access to capital and talent.
- The decade in which this economic policy was implemented saw significant growth.
- The database in which all patient records are stored must be encrypted.
- The meeting in which this decision was made was not officially recorded.
Incorrect Usage Examples
Understanding errors is just as valuable as seeing correct usage. Here are common mistakes and how to fix them:
Incorrect: The method in which the survey was conducted was flawed. Correct: The method by which the survey was conducted was flawed. Why: A method is a means, not a location. You need “by which” to describe how something was done.
Incorrect: The room by which the ceremony took place was beautifully decorated. Correct: The room in which the ceremony took place was beautifully decorated. Why: A room is a physical space, a container. The ceremony took place inside it, so “in which” is correct.
Incorrect: The principle in which the policy was designed ensures accountability. Correct: The principle by which the policy was designed ensures accountability. Why: A principle is a guiding standard, the means by which something is built. It is not a setting or environment.
Incorrect: The situation by which the refugees found themselves was desperate. Correct: The situation in which the refugees found themselves was desperate. Why: A situation is a set of circumstances, a context. People find themselves in situations, not by them.
Incorrect: The framework by which the data was gathered includes three regional offices. Correct: The framework in which the data was gathered includes three regional offices. Why: Here, “framework” refers to the structural context of data collection, the environment in which it occurred, not the method.
Context Variations

The same noun can sometimes appear with either phrase depending on what the writer intends to communicate. This is where precise thinking matters most.
“System” with Both Phrases
“The system by which files are organized determines how quickly employees can retrieve information.” “The system in which these files exist is outdated and prone to crashes.”
In the first sentence, “system” means the method of organization. In the second, “system” means the environment or platform that contains the files. The noun is identical, but the intended meaning is different, and so the preposition must change.
“Process” with Both Phrases
“The process by which applications are reviewed takes approximately six weeks.” “The process in which candidates are enrolled begins with an orientation session.”
The first describes how reviewing happens. The second describes a process as an event or program that candidates participate within.
“World” and Abstract Nouns
Abstract nouns such as “world,” “reality,” “society,” and “environment” almost always call for “in which” because they represent contexts or settings rather than mechanisms.
“The world in which we live is changing rapidly.” NOT: “The world by which we live is changing rapidly.” (This is incorrect and nonsensical.)
However, if you pair an abstract noun with a sense of mechanism or cause, “by which” can appear with unexpected nouns:
“The belief by which he guided his decisions proved to be flawed.”
Here, “belief” is being used as a guiding principle, a means, not a setting. So “by which” works.
Common Mistakes with Relative Clauses
Writers at all levels make consistent errors with “by which” and “in which.” Understanding these patterns helps you avoid them.
Mistake 1: Using “in which” for method-based nouns
This is the single most common error. Words like “method,” “technique,” “means,” “process,” “procedure,” and “approach” almost always need “by which.”
Wrong: The approach in which the team solved the problem was creative. Right: The approach by which the team solved the problem was creative.
Mistake 2: Using “by which” for location or context nouns
This happens less often but is equally wrong. Words like “place,” “environment,” “era,” “situation,” and “event” almost always need “in which.”
Wrong: The era by which this architecture flourished is called the Renaissance. Right: The era in which this architecture flourished is called the Renaissance.
Mistake 3: Overusing either phrase when “where” would be simpler
In informal and semi-formal writing, “in which” can sometimes be replaced by the simpler relative adverb “where.” This makes sentences easier to read without sacrificing accuracy.
“The office in which she works” → “The office where she works” ✓ (informal contexts) “The process in which data is stored” → “The process where data is stored” ✗ (incorrect; “process” is abstract, not a place)
The rule: use “where” when the antecedent is a concrete physical location and the writing is informal or semi-formal. Use “in which” when the antecedent is an abstract concept or when formal register is required. Never use “where” with “by which” constructions.
Mistake 4: Stranding prepositions incorrectly in formal writing
In casual English, it is acceptable to end a relative clause with a preposition: “The method we analyzed it by.” In formal writing, the preposition moves to the front and becomes “by which.” Failing to make this shift in academic or professional writing sounds underdeveloped.
Casual: The process we went through was exhausting. Formal: The process through which we went was exhausting.
Mistake 5: Using “that” instead of “which” with fronted prepositions
This is a firm grammatical rule. You cannot front a preposition before “that.” You can say “the rule that we follow,” but you cannot say “the rule by that we follow.” Whenever a preposition comes before the relative pronoun, “which” is the only option.
Wrong: The statute by that the court operates is binding. Right: The statute by which the court operates is binding.
Memory Tricks for Choosing Correctly
Grammar rules are only useful when you can access them quickly while writing. These memory strategies help you make the right call without stopping to think for too long.
Trick 1: The “How vs. Where” Test
Ask yourself a simple two-part question about the clause you’re writing:
- Does it explain how something happens? → Use by which
- Does it explain where or within what something happens? → Use in which
This test works in the vast majority of cases and takes only a second to apply.
Trick 2: The Substitution Test
Try swapping the phrase with a substitute:
- Try replacing “by which” with “through which” or “by means of which”. If it sounds natural, you have the right phrase.
- Try replacing “in which” with “where” (for concrete nouns) or “within which” (for abstract ones). If either sounds natural, you have the right phrase.
Trick 3: The Antecedent Category System
Categorize the noun that “which” refers to:
Noun is an instrument, tool, rule, or method? → By which Noun is a space, context, event, or period? → In which
Build a mental shortlist: method, technique, process, procedure, rule, law, standard, criterion = “by which” words. Place, environment, situation, chapter, era, event, world, case = “in which” words.
Trick 4: The Direction of the Action
Think about the direction of the relationship between the noun and the action described in the clause.
- If the noun drives or enables the action → by which
- If the noun surrounds or contains the action → in which
A method drives an analysis. A room contains a meeting. A law enables enforcement. A decade contains events. This directional thinking makes the grammar feel intuitive rather than mechanical.
Trick 5: Read It Aloud
If you’re ever still unsure, read both versions aloud.
“The system by which data is backed up is automated.” “The system in which data is backed up is automated.”
The second version creates a subtle but real ambiguity. Is the “system” a platform that holds the data, or is it the backup procedure itself? The first version is unambiguous: the system is the means of backup. Reading aloud activates your intuitive sense of meaning, which is often right.
“By Which” vs “In Which” Across Different Writing Styles
One of the most practical skills a writer can develop is adjusting their language choices based on the genre and audience they are writing for. These two phrases behave differently across different writing styles, and recognizing those patterns will help you use them more naturally.
Academic and Research Writing
Academic writing is the home territory of both “by which” and “in which.” Scholars depend on precision, and these prepositional phrases deliver it. In research papers, you will often see “by which” used to describe research methodologies and analytical frameworks, and “in which” used to situate findings within a broader theoretical or social context.
Consider how these play out in a research abstract:
“This paper examines the mechanism by which social media algorithms amplify misinformation and explores the cultural environment in which such content spreads most rapidly.”
Here, both phrases appear in the same sentence. “By which” describes a mechanism (a means), and “in which” describes an environment (a context). The two are used together without conflict, and each does its own specific job.
Legal and Policy Writing
Legal writing is arguably the domain that depends most heavily on precision. In contracts, statutes, and court decisions, the wrong preposition can create genuine ambiguity that affects interpretation and enforcement.
“By which” is extremely common in legal language because laws and regulations are instruments, they are the means through which authority is exercised.
“The statute by which the agency was granted regulatory authority was challenged in the Supreme Court.”
“In which” appears when legal writers are specifying jurisdiction, venue, or circumstances.
“The jurisdiction in which the contract is to be enforced must be specified in writing.”
In legal contexts, these phrases are rarely substituted for simpler alternatives. The formality of legal writing demands the full prepositional construction.
Business and Corporate Writing
Business writing occupies a middle register. It is formal, but not as dense as legal or academic prose. Writers in this space use “by which” and “in which” when they need precision, but they freely switch to simpler expressions like “how” and “where” when readability is the priority.
Common business contexts for “by which”:
“The process by which invoices are approved must be streamlined to reduce payment delays.” “The criteria by which performance is assessed will be reviewed at the end of Q2.”
Common business contexts for “in which”:
“The markets in which we operate have become increasingly competitive.” “The quarter in which these losses occurred followed a period of rapid expansion.”
A practical tip for business writers: if a sentence with “by which” or “in which” feels heavy or wordy, try replacing it with “how” or “where” and see if the meaning holds. If it does, the simpler version may be the better choice for your audience.
Journalistic and Editorial Writing
Journalists almost never use “by which” or “in which.” News writing prioritizes short, punchy sentences and accessible language. You are far more likely to see “how” and “where” in newspaper articles and online news features.
However, in long-form journalism, opinion columns, and investigative essays, these phrases occasionally appear when a writer wants to lend a formal or authoritative tone to a particular statement.
“The system by which local governments are funded has been broken for decades.”
This kind of sentence might appear in a policy-focused editorial to signal seriousness and analytical weight.
Pairing “By Which” and “In Which” with Different Antecedent Nouns
A deep understanding of these phrases includes knowing which nouns they pair with most naturally. Below is an expanded reference guide organized by noun type.
Nouns That Almost Always Take “By Which”
| Noun | Example |
| Method | The method by which data is collected |
| Technique | The technique by which artists achieve depth |
| Process | The process by which appeals are filed |
| Mechanism | The mechanism by which hormones signal cells |
| Procedure | The procedure by which surgeries are scheduled |
| Standard | The standard by which quality is judged |
| Criterion | The criterion by which applicants are ranked |
| Means | The means by which revenue is generated |
| Rule | The rule by which the game is played |
| Law | The law by which citizens are protected |
Nouns That Almost Always Take “In Which”
| Noun | Example |
| Environment | The environment in which plants grow |
| Situation | The situation in which we found ourselves |
| Context | The context in which the speech was given |
| World | The world in which they lived |
| Era | The era in which jazz flourished |
| Chapter | The chapter in which the conflict begins |
| Case | A case in which the evidence was overlooked |
| Decade | The decade in which technology transformed society |
| Region | The region in which the dialect developed |
| Field | The field in which she established her expertise |
These tables are not exhaustive, but they give you a solid foundation for the most common pairings. When in doubt, return to the core question: is this noun a means or a setting?
The Role of Register and Formality
One final point worth making is that both “by which” and “in which” are formal expressions. You would not typically use either phrase in casual conversation or everyday writing. In informal contexts, simpler alternatives work better.
| Formal | Informal Equivalent |
| The method by which this is done | How this is done |
| The house in which she lived | The house where she lived |
| The era in which he worked | The era when he worked |
| The process by which it works | How it works |
Knowing when not to use these phrases is part of mastering them. In a casual blog post or conversational email, using “by which” or “in which” can sound stiff and overly formal. Reserve them for academic writing, legal documents, business reports, policy papers, and professional correspondence where precision and formality are expected.
.“For a clearer understanding of commonly confused words like this, check out this detailed guide on City vs Town vs Village to sharpen your writing accuracy even further.”
Conclusion
The difference between “by which” and “in which” comes down to a single question: are you describing a method or a context? Use “by which” when the clause explains how something happens. Use “in which” when the clause explains where or within what circumstances something happens. One preposition points to a process; the other points to a place. Get that right, and your formal writing will be sharper, clearer, and more persuasive in every situation where it matters.

