Many writers type or say "buy" when they mean the preposition "by" + gerund (-ing). "Buy" = purchase; "by + gerund" = method or means. Spotting the difference fixes many small but confusing errors.
Quick answer
Use by + gerund (by + -ing) to show how something was done. Use buy only to mean purchasing something (buy + object). If you see "buy" before an -ing verb, replace it with "by" unless the sentence actually refers to buying.
- "By studying every night, I improved my grades." (method - correct)
- "I improved my grades buy studying every night." (incorrect - 'buy' suggests purchase)
- If swapping 'buy' → 'by' makes the sentence answer How, the change is correct.
Core grammar: why "by + gerund" works
'By' is a preposition that introduces a method or means (it answers How?). English uses gerunds (verb + -ing) after prepositions, so the pattern is: by + gerund = method.
'Buy' is a verb meaning "to purchase" and usually needs an object (buy a coffee). Use it only when purchase is intended.
- Right: By practicing, she improved.
- Wrong: She improved buy practicing. (unless she literally bought something while practicing)
- Gerunds follow prepositions; infinitives (to + verb) do not follow prepositions.
Real usage and tone: work, school, casual
The structure "by + -ing" works in formal and informal registers; tone comes from word choice, not the grammar itself. Here are model lines you can adapt.
- Work: By automating tests, we catch regressions earlier.
- School: By taking notes, students remember lectures.
- Casual: By leaving earlier, you'll avoid traffic.
Common wrong/right pairs (practice these)
Below are typical mistakes and clean corrections. In each case, replace 'buy' with 'by' unless purchase is meant.
- Wrong: I improved my English buy practicing speaking every day.
Right: I improved my English by practicing speaking every day. - Wrong: She finished the project buy working late all week.
Right: She finished the project by working late all week. - Wrong: They reduced churn buy asking customers what went wrong.
Right: They reduced churn by asking customers what went wrong. - Wrong: He learned the song buy watching tutorial videos.
Right: He learned the song by watching tutorial videos. - Wrong: We saved time buy automating the report generation.
Right: We saved time by automating the report generation. - Wrong: She got fit buy running three times a week.
Right: She got fit by running three times a week. - Wrong: I caught the train buy leaving earlier.
Right: I caught the train by leaving earlier. - Wrong: He calmed the baby buy singing softly.
Right: He calmed the baby by singing softly.
Practical examples you can adapt (work / school / casual)
Use the pattern "By + verb-ing, + result clause." If you really mean purchase, keep "buy" and add an object.
- Work wrong: We met our targets buy reducing downtime.Work right: We met our targets by reducing downtime.
- Work wrong: Managers boost morale buy recognizing effort publicly.Work right: Managers boost morale by recognizing effort publicly.
- Work wrong: The team sped delivery buy prioritizing bug fixes.Work right: The team sped delivery by prioritizing bug fixes.
- School wrong: Students improve recall buy summarizing notes daily.School right: Students improve recall by summarizing notes daily.
- School wrong: You pass the exam buy practicing past papers.School right: You pass the exam by practicing past papers.
- School wrong: Teachers support learning buy giving timely feedback.School right: Teachers support learning by giving timely feedback.
- Casual wrong: You'll save money buy cooking at home.Casual right: You'll save money by cooking at home.
- Casual wrong: She avoided the line buy arriving early.Casual right: She avoided the line by arriving early.
- Casual wrong: He got better sleep buy reducing screen time.Casual right: He got better sleep by reducing screen time.
Try your own sentence
Check the whole sentence, not just the phrase. Context usually makes the right form obvious.
Rewrite help: 3 quick steps + model rewrites
Fix sentences fast with these steps, then compare with the model rewrites below.
- Step 1: Would "purchase" make sense? If not, swap 'buy' → 'by'.
- Step 2: Make sure the verb after 'by' is in -ing form (gerund).
- Step 3: Read the sentence aloud; it should answer How.
- Original: I finished the report buy staying late. →
Rewrite: I finished the report by staying late. - Original: You can get a refund buy returning the product within 30 days. →
Rewrite: You can get a refund by returning the product within 30 days. - Original: She improved her pronunciation buy listening to native speakers. →
Rewrite: She improved her pronunciation by listening to native speakers. - Original: They lowered costs buy switching vendors. →
Rewrite: They lowered costs by switching vendors. - Original: He avoided mistakes buy reviewing his code. →
Rewrite: He avoided mistakes by reviewing his code.
Memory tricks, hyphenation, and spacing notes
Quick hints for proofreading and remembering the rule.
- Mnemonic: think "bridge" - 'by' builds a bridge to the method (how something happened).
- Quick test: replace 'buy' with 'purchase.' If it sounds wrong, use 'by.'
- Spacing/hyphenation: write "by doing" with a space. Never "by-doing."
- Watch "buying": it is the gerund of the verb buy (purchasing). "By buying snacks" is valid when purchasing is the method.
Why this mistake happens (typos, autocorrect, pronunciation)
Small keyboard slips, autocorrect, and the similar sound /baɪ/ cause many errors. A quick checklist helps avoid repeated mistakes.
- Keyboard: mistyping "by" as "buy" is common - slow down when proofreading.
- Autocorrect: add frequent phrases like "by practicing" to your dictionary to avoid wrong suggestions.
- Listening: train minimal pairs so you distinguish "buy" (purchase) from "by" (method).
Similar mistakes to watch for
Check meaning, not sound. A few lookalikes often cause errors.
- bye / by / buy - choose farewell, method, or purchase based on meaning.
- Gerund vs infinitive: after prepositions (including 'by'), use -ing, not "to."
- With vs by: "with" typically takes a noun (With a hammer); "by" takes a gerund to show method (By hammering).
- Wrong: She learned English with listening podcasts. → Better: She learned English by listening to podcasts.
- Wrong: He improved by to practice daily. →
Right: He improved by practicing daily. - Usage: "Buy a ticket" (purchase) vs "By buying a ticket, you'll skip the line" (method: buying).
FAQ
Is it "buy" or "by" before an -ing verb?
Use "by" before an -ing verb to show method (by + gerund). Use "buy" only when you mean purchase.
Can "buying" ever replace "by + doing"?
Not as a direct replacement. "Buying" means purchasing. You can combine them: "By buying snacks for the team, she boosted morale" - here 'by' introduces the method and 'buying' means purchase.
What quick checks catch this error?
Scan for "buy" followed by an -ing verb. Ask whether "purchase" would make sense. If not, change "buy" to "by" and ensure the verb is in -ing form.
Is there any hyphenation with "by + gerund"?
No. Always write "by" + space + gerund (e.g., "by practicing"). Never hyphenate.
Why does autocorrect suggest "buy" sometimes?
Autocorrect suggests common words based on your typing patterns. If it keeps suggesting "buy," add correct phrases to your dictionary or change the suggestion before sending.
Want a quick second pair of eyes?
If you often swap "buy" and "by," paste a few recent sentences into a grammar checker or run a quick search-and-replace. Replace "buy" with "by" when purchase isn't meant, then read each sentence aloud to confirm the meaning.
Practice three edits now: find one "buy" + -ing instance and fix it; you'll notice the improvement immediately.