Grammar rule and drill

Past perfect continuous: had been doing

Had been plus -ing describes an activity that was in progress before another past moment. It stresses the duration, not the finished result.

CEFR B1-B220 questionsUpdated 5 October 2026

Go to the drillRead the ruleDownload worksheet (PDF)

The past perfect continuous reaches further back than the past continuous. "She was working when I arrived" describes the moment of my arrival. "She had been working for hours when I arrived" adds the hours that came before it.

The form is had been plus the -ing verb. All subjects take had, so the pattern is stable: I had been waiting, she had been waiting, they had been waiting. The activity started before a past moment and continued up to it.

This page explains the timeline, the difference from the past continuous and the past perfect simple, and the stative verbs that refuse the continuous. The 20-question drill checks each pattern with a short rule.

The rule

The form and the timeline

  • The form is had been plus the -ing verb: "She had been working."
  • All subjects take had: I had been, she had been, they had been.
  • The action started before a past moment and continued up to it.
  • The second event usually appears in the past simple: "when I arrived".

Why not just the past continuous?

  • Past continuous: "She was working when I arrived" describes the moment.
  • Past perfect continuous: "She had been working for hours when I arrived" adds duration before the moment.
  • The past perfect continuous reaches further back.
  • Both put the action in progress; the perfect form adds how long.

Duration, cause and visible results

  • Duration with for and since: "We had been driving for six hours."
  • Cause of a later state: "He was tired because he had been running."
  • Visible evidence: "The ground was wet; it had been raining."
  • The activity may have just stopped or may still continue.

Continuous versus perfect simple

  • The continuous stresses the activity: "She had been painting the wall."
  • The simple stresses the finished result: "She had painted the wall."
  • The continuous answers how long; the simple answers how many or how much.
  • With stative verbs, use the simple form: "I had known him for years."

Common traps

  • Do not use the present perfect continuous for a past-before-past timeline.
  • The negative is had not been: "They had not been waiting long."
  • The question puts had first: "Had you been waiting long?"
  • Do not use the continuous with a count: "She had written three letters" is correct.

Examples

  • She had been working for hours when I arrived.The work continued up to the moment of arrival.
  • They had been driving all night before they stopped.Duration before a past event.
  • He was tired because he had been running.The activity caused the later state.
  • The ground was wet; it had been raining.Visible evidence of an earlier activity.
  • We had been waiting for an hour when the bus came.For an hour answers how long.
  • I had not been sleeping well before the holiday.The negative is had not been plus -ing.
  • Had you been waiting long?The question puts had before the subject.
  • She had been painting the wall all morning.The continuous stresses the activity itself.
  • He had known her for years before they married.A stative verb keeps the simple form had known.
  • They had been living in Rome for two years when the baby was born.A continuing situation before a past event.

Common mistakes

Wrong: I have been waiting for an hour when he arrived. Right: I had been waiting for an hour when he arrived.
The waiting is before a past moment, so the timeline needs had been.
Wrong: She had been write the report all morning. Right: She had been writing the report all morning.
The past perfect continuous takes the -ing form writing.
Wrong: They had been waited for two hours. Right: They had been waiting for two hours.
The continuous uses been plus -ing, not been plus the past participle.
Wrong: He had been knowing her for years. Right: He had known her for years.
Stative verbs such as know avoid the continuous form.
Wrong: She had been writing three letters by noon. Right: She had written three letters by noon.
A count of finished things takes the past perfect simple, not the continuous.

Practice drill

Answer all 20 questions. Each answer is marked at once, and the rule is explained under the question.

  1. She ___ for hours when I arrived.

    Show answer and explanation

    Answer: A. had been working The past perfect continuous had been working shows the activity before my arrival.

  2. They ___ all night before they stopped.

    Show answer and explanation

    Answer: B. had been driving The duration before a past event takes had been driving.

  3. He was tired because he ___.

    Show answer and explanation

    Answer: C. had been running The past perfect continuous had been running explains the earlier cause.

  4. The ground was wet; it ___.

    Show answer and explanation

    Answer: D. had been raining The evidence points to an activity before the past moment, so had been raining fits.

  5. We ___ for an hour when the bus came.

    Show answer and explanation

    Answer: A. had been waiting For an hour with a past moment takes the past perfect continuous had been waiting.

  6. I ___ well before the holiday.

    Show answer and explanation

    Answer: B. had not been sleeping The negative past perfect continuous is had not been sleeping.

  7. ___ you been waiting long?

    Show answer and explanation

    Answer: C. Had The question puts had before the subject in the past perfect continuous.

  8. She ___ the wall all morning.

    Show answer and explanation

    Answer: D. had been painting All morning stresses the duration of the activity, so had been painting fits.

  9. He ___ her for years before they married.

    Show answer and explanation

    Answer: A. had known The stative verb know avoids the continuous, so the past perfect simple had known is correct.

  10. They ___ in Rome for two years when the baby was born.

    Show answer and explanation

    Answer: B. had been living The continuing situation before the birth takes had been living.

  11. The team ___ hard, so they deserved the win.

    Show answer and explanation

    Answer: C. had been training The past perfect continuous had been training explains the later result.

  12. She was out of breath because she ___.

    Show answer and explanation

    Answer: D. had been cycling The earlier activity that caused the state takes had been cycling.

  13. The children ___ since lunchtime.

    Show answer and explanation

    Answer: A. had been playing Since lunchtime before a past moment takes had been playing.

  14. I realized I ___ in the wrong direction.

    Show answer and explanation

    Answer: B. had been walking The walking continued up to the moment of realizing, so had been walking fits.

  15. How long ___ they been living there?

    Show answer and explanation

    Answer: C. had The past perfect continuous question uses had before the subject.

  16. He ___ for the company for ten years before he left.

    Show answer and explanation

    Answer: D. had been working For ten years before a past event takes had been working.

  17. The road was icy because it ___.

    Show answer and explanation

    Answer: A. had been snowing The cause of the ice is a past perfect continuous activity, had been snowing.

  18. She ___ for the exam all week.

    Show answer and explanation

    Answer: B. had been revising All week stresses the longer activity, so had been revising fits.

  19. They ___ for two hours before the doctor saw them.

    Show answer and explanation

    Answer: C. had been waiting The past perfect continuous had been waiting covers the time before the doctor saw them.

  20. I ___ that book for months before I finished it.

    Show answer and explanation

    Answer: D. had been reading For months before a past event takes the past perfect continuous had been reading.

Questions learners ask

What is the difference between the past continuous and the past perfect continuous?

The past continuous describes the activity at one past moment: "I was cooking when the phone rang." The past perfect continuous describes the activity leading up to that moment and usually adds duration: "I had been cooking for an hour when the phone rang." Both are correct; the perfect form reaches further back.

When do I use for and since with had been?

Use for with a length of time: "We had been walking for two hours." Use since with a starting point: "She had been working there since 2018." Both tell the listener how long the earlier activity lasted before the past moment you are describing.

Why can't I say "had been knowing"?

Know is a stative verb, so it describes a state rather than an activity. States do not have a continuous form in standard English, so the past perfect simple carries the duration: "I had known him for years." The same applies to be, have, like, believe and belong.

More grammar topics

Take the free A1 to C2 level test to find your starting point.