Use “that” when the reader needs the clause to know what you mean. Use “which” when you are adding a side comment that could be removed without changing the core meaning.
Timing and grammar: when each word is the safer choice.
Pairs with the broader “which vs that” topic for people learning edited English.
If you are unsure, try removing the clause. If the sentence breaks, the clause is likely essential.
More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog