Both a gerund and a present participle come from a verb, and both end in –ing. However, each has a different function.
Gerunds
- swimming
- running
- drinking
- drinking a flagon (The gerund drinking has a direct object, a flagon.)
- driving erratically (The gerund driving is modified with an adverb, erratically.)
- regularly visiting the hospital (The gerund visiting is modified with an adverb, regularly, and has a direct object, the hospital. )

- For example:
("Visiting" is the subject of the verb "is.")
- For example:
("Visiting" is the direct object of the verb "love.")
- For example:
("Visiting" is the object of the preposition "by.")
- For example:
- ("Visiting" is a subject complement. It completes the linking verb "was" and renames the subject, making it a subject complement.)

- Eating blackberries quickly will make you ill.

Even though all gerunds end with the suffix -ing, not every word which ends -ing is a gerund. The other common type of word which ends -ing is the present participle.
(This is a gerund.)
Can you fix the running tap?
(This is a present participle as an adjective.)
(This is a present participle used to form the past progressive tense.)