By which or In which: Which Is Correct?
Updated · Which One Is Correct editorial team

Quick answer: Both by which and in which are correct English phrases, but they serve different grammatical functions. You choose the right one based on whether you are describing a method of action or a location within a container or abstract scope. Understanding this distinction ensures your writing remains precise.
The Short Answer
By which refers to the method, means, or process through which something happens, while in which describes the situation, context, or physical space where an event takes place.
People often confuse these terms because both act as relative phrases connecting clauses. The error usually stems from focusing on the noun before the phrase rather than the relationship the verb requires, leading to mixed-up prepositions.
Side-by-Side Comparison
| Form | Status | Use it when |
|---|---|---|
| By which | Standard | Referring to a method, cause, or means of doing something |
| In which | Standard | Referring to a location, container, situation, or time period |
| By | Preposition | Indicating agency or instrumentality in a sentence structure |
| In | Preposition | Indicating inclusion, location, or state of being within bounds |
Correct Example Sentences
- The software by which the data is encrypted is now outdated and vulnerable.
- She described the chaotic scene in which she found herself after the storm.
- We need to identify the process by which these decisions are made.
- The book in which he detailed his travels won several literary awards.
- Please clarify the method by which you calculated the final total.
- He lives in a neighborhood in which everyone knows each other well.
- The law by which the contract was signed is no longer in effect.
- I am thinking of the house in which I grew up as a child.
- The team discovered a way by which they could reduce energy waste.
- The report in which the error was noted has been revised completely.
Common Mistakes and Fixes
- The box in which the money was delivered was heavy.
- The box in which the money was kept was heavy.
- The method in which we solved the problem was unique.
- The method by which we solved the problem was unique.
- The reason by which he left is unclear to everyone.
- The reason for which he left is unclear to everyone.
- The city by which she was born is famous for jazz.
- The city in which she was born is famous for jazz.
- The tool in which he fixed the car was rusty.
- The tool with which he fixed the car was rusty.
- The manner by which the event was handled was professional.
- The manner in which the event was handled was professional.
A Quick Test You Can Use
Replace the phrase with the noun it modifies to check the logic. If you are talking about how something is done, swap in the word method or means to see if by which fits. If you are discussing where something happens or what context surrounds it, swap in place or situation to see if in which is the natural choice.
Related Word Pairs
- Who vs Whom
- Use who as the subject of a sentence and whom as the object receiving the action.
- Then vs Than
- Use then for time or sequence and than for making comparisons between items.
- Effect vs Affect
- Use affect as a verb meaning to influence and effect as a noun meaning result.
- Its vs It's
- Use its to show possession and it is when contracting the pronoun with a verb.
- Loose vs Lose
- Use loose to describe something not tight and lose to describe failing to keep something.
More Example Sentences
- We must determine the criteria by which the candidates will be evaluated.
- The garden in which the roses bloom is located behind the main house.
- She explained the logic by which the algorithm sorts the data efficiently.
- This is the drawer in which I keep all my important receipts.
- The path by which the hikers ascended the mountain was steep and narrow.
- He recalled the room in which he first learned to play the piano.
- We need to understand the rules by which the competition is governed.
- The vase in which the flowers are arranged is made of delicate porcelain.
- The principle by which the bridge supports its weight is based on tension.
- She visited the museum in which the ancient artifacts were displayed.
Quick Practice
Identify the tool you used to tighten the bolt.
with which
The container the samples were stored was sealed tightly.
in which
We need a plan we can achieve our quarterly goals.
by which
The valley the river flows is known for its fertility.
through which
She described the situation she was trapped without a phone.
in which
There is a law this process must be conducted openly.
by which
Frequently Asked Questions
Can I use by which and in which interchangeably?
No, they serve distinct grammatical roles. By which indicates method or means, while in which indicates location or context. Swapping them changes the meaning and often makes the sentence sound unnatural or confusing to the reader.
Is by which considered formal language?
Both phrases are standard in formal and informal English. However, by which often appears in more technical or academic writing where precision regarding methods is required, whereas in which is common in narrative and descriptive contexts.
What if I want to avoid both phrases?
You can often rewrite the sentence using a relative clause without a preposition. For example, instead of saying the method by which he worked, you could simply say the method he used to work, which is often clearer and more direct.
Does by which always need a noun before it?
Yes, by which and in which are relative phrases that must follow a noun or a noun phrase. They cannot stand alone at the start of a sentence and must refer back to a specific antecedent mentioned earlier in the text.





