What is the difference between a gerund and a gerund phrase?

A gerund is a noun that is derived from a verb, using the “-ing” ending (e.g., “swimming,” cooking”).

A gerund phrase is a group of words that begins with a gerund and includes any of its modifiers or objects (e.g., “swimming in the ocean,” “cooking dinner every night for my friends”).

Both gerunds and gerund phrases act as nouns in sentences and can be subjects, direct objects, indirect objects, objects of prepositions, and subject complements.