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 doing | How much: had done |
|---|---|
| for hours | ten pages |
| all day | three letters |
| since nine o'clock | so 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 Continuous | Without the Continuous |
|---|---|
| work | know |
| wait | like |
| live | be |
| cry | have (= 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 when | no sooner and than |
|---|---|
| had hardly left ... when | had no sooner left ... than |
| Hardly had I left ... when | No 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.
See also: Past Perfect and stories about the past