1. Grammar TOP
  2. English grammar
  3. Tenses
  4. Stories about the past 2: had been doing

Level B2

Past Perfect Continuous: had been + -ing before a past time

Say what had been going on, what we'd done, who we'd known and what happened just after we left

In short

The Past Perfect Continuous shows that an action went on for some time before a moment in the past. We build it with had been + -ing for every subject: I was tired. I had been working all day. In speech: I'd been, she'd been.

The negative is hadn't been + -ing: She hadn't been sleeping well. In questions, had comes first: Had they been waiting long? Yes, they had.

When we use the Past Perfect Continuous

  • How long, up to a past moment, with for, since, all day: She'd been waiting for an hour when the bus came.
  • Signs of an earlier action. Often it had stopped, but you could see the result: He was out of breath. He'd been running.

With verbs like know, like, be and have (= own), we don't use the Continuous. We use the Past Perfect: We had known each other for years. See stative verbs.

For one action just after another, with hardly ... when or no sooner ... than, the first action is in the Past Perfect, not had been doing: I had hardly sat down when the phone rang. If hardly or no sooner starts the sentence, had comes before the subject: No sooner had Tom left than Anna arrived.

The rule with examples

01Past Perfect Continuous: positive

The Past Perfect Continuous shows that an action went on for some time before a moment in the past. Build it with had been + -ing for every subject.

I was tired.Ihad been workingall day

  • The ground was wet. It had been raining.

For an action before a past moment, use had been working, not has been working.

In speech we shorten had to 'd: I'd been, she'd been.

  • She'd been waiting for an hour when the bus came.
  • We'd been walking for hours.

02Past Perfect Continuous: negatives and questions

To say that an action was not going on before a past moment, put hadn't been before the -ing form.

Shehadn't been sleepingwell

  • I hadn't been waiting long when he came.

In questions, had comes before the subject. In short answers we repeat had: Yes, it had.

Hadtheybeen waitinglong?

  • How long had you been living there?
  • Had it been raining? Yes, it had.

Don't use did in this question: Had they been waiting?, not Did they been waiting?

03Activity or result: had been doing and had done

To say how long an action went on before a past moment, use had been doing.

Shehad been writingall day

To say what somebody had finished and how much, use had done.

Shehad writtenten pages

How long: had been doingHow much: had done
for hoursten pages
all daythree letters
since nine o'clockso much work
  • He'd been painting since morning.
  • By lunch he'd painted two rooms.

When you count finished things, use had done: She'd written ten letters. Had been doing shows the activity, not the amount.

04At that time or before: was doing and had been doing

To say that an action was in progress at that moment, use was doing.

When I phoned,shewas havinga lesson

To say that an action went on for some time up to that moment, use had been doing. Often it had stopped, but you could see signs of it.

When I came in,shehad been crying

  • It wasn't raining, but the ground was wet. It had been raining.
  • He was out of breath. He'd been running.

If she had stopped crying but her eyes were still red, say she'd been crying. Was crying would mean she was still crying then.

05Verbs without the Continuous: had known

We don't use know, like, be and have (= own) in the Continuous. For a state that lasted up to a past moment, use the Past Perfect: had known.

Wehad knowneach otherfor years

With the ContinuousWithout the Continuous
workknow
waitlike
livebe
cryhave (= own)
  • She'd always had long hair.
  • He'd liked jazz since he was a child.

Even with for years, say we had known each other, not we had been knowing each other.

06Just after: hardly ... when, no sooner ... than

To say that one thing happened just after another, put the first action in the Past Perfect with hardly. Put the second after when in the Past Simple.

Ihad hardly sat downwhenthe phone rang

  • We'd hardly left when it started to rain.

Put the first action in the Past Perfect: I'd hardly sat down, not the Past Simple.

No sooner means the same, but we use than instead of when. If hardly or no sooner starts the sentence, put had before the subject, as in a question.

No soonerhadweleftthan it rained

hardly and whenno sooner and than
had hardly left ... whenhad no sooner left ... than
Hardly had I left ... whenNo sooner had we left ... than
  • Hardly had I closed my eyes when the baby cried.
  • No sooner had Tom left than Anna arrived.

After no sooner, use than, not when: No sooner had we left than it rained.

Common mistakes

has been in a story about the past. We use had: When Mum came home, Anna had been cleaning (not: has been cleaning). Keep been: He'd been running (not: He'd running).

did with been. Had they been waiting? (not: Did they been waiting?), Anna hadn't been eating (not: didn't been eating).

had been doing with a number. By lunchtime Anna had written ten pages (not: had been writing ten pages). After had, use the past participle: had drunk (not: had drank).

was crying when it had stopped. Her eyes were red. She had been crying (not: She was crying).

had been knowing. We had known each other for years (not: We had been knowing each other).

when after no sooner. No sooner had the film started than the lights went out (not: ... started when the lights went out).

Past Perfect Continuous or Past Perfect

  • He'd been painting since morning. The activity and how long it went on.
  • By lunch he'd painted two rooms. What was finished and how much.

Use had been doing with for hours, all day, since nine o'clock and after How long. Use the Past Perfect had done with numbers like ten pages and after How many.

Practice

Do the exercises. After each one, you will see an explanation.

  1. 1Choose the right option

    I was tired when I got home. I all day.

    Show answer

    Correct answer: had been working

    You worked all day before you got home, so we use had been working. We don't use has been: it's all in the past.

  2. 2Fill in the gaps

    We been long when the doors opened.

    Show answer

    Correct answer: hadn't … waiting

    We didn't wait long before the doors opened, so we use hadn't been + -ing: waiting. We don't use didn't or haven't here.

  3. 3Type the answer using the hint

    Anna had been writing since nine, and by noon she (write) ten pages.

    Show answer

    Correct answer: Anna had been writing since nine, and by noon she had written ten pages.

    Ten pages shows how much she finished by noon, so we use had written, not had been writing.

  4. 4Build the sentence

    Explain why the ground was wet

    Show answer

    Correct answer: It had been raining all night.

    It rained before that moment, and the wet ground was the sign. So we use had been raining.

  5. 5Build the sentence for this situation

    Say that Tom called just after you sat down

    Show answer

    Correct answer: I'd hardly sat down when Tom called.

    We put the first action with hardly in the Past Perfect: I'd hardly sat down. The second comes after when.

  6. 6Fill in the gaps

    When the bus finally came, we been for 40 minutes.

    Show answer

    Correct answer: had … waiting

    We waited for 40 minutes before the bus came, so we use had been + -ing: waiting. We don't use have: it's all in the past.

  7. 7Type the answer using the hint

    When I saw Sam, he looked awful. He (not / have) been sleeping well.

    Show answer

    Correct answer: When I saw Sam, he looked awful. He hadn't been sleeping well.

    Sam slept badly before you saw him, so we use hadn't been. We don't use hasn't: it's all in the past.

  8. 8Build the sentence

    Explain why he was so tired

    Show answer

    Correct answer: He'd been painting the fence since breakfast.

    Since breakfast shows how long it went on, so we use 'd been painting.

Frequently asked questions

How do you form the Past Perfect Continuous?

Use had been + -ing for every subject: It had been raining. The short form is 'd been, the negative hadn't been, and questions start with had: Had you been waiting long?

What is the difference between the Past Perfect and the Past Perfect Continuous?

The Continuous shows how long an activity went on: She'd been writing all day. The Past Perfect shows what was done and how much: She'd written ten pages.

What is the difference between the Past Continuous and the Past Perfect Continuous?

Was doing shows the action was in progress at that moment: When I phoned, she was having a lesson. Had been doing shows it went on up to then and often had stopped: Her eyes were red. She'd been crying. More on the page Past Continuous.

Do you use did in Past Perfect Continuous questions?

No. The question starts with had: Had they been waiting? (not: Did they been waiting?). The same after How long: How long had you been living there?

Keep practicing in Grammar TOP

The app has more exercises and review for this topic, to help you remember the rule.

Download on the App StoreGet it on Google PlayDownload on the Mac App Store