A gerund is the noun form of a verb that ends in -ing. For example, playing, dancing, and eating.
Definition:
A gerund is a verb form that functions as a noun. It is derived from the Latin gerundium, which is derived from the Latin verb gerundus, meaning "to carry on, to pursue."
Functions of gerund in english:
For example, in the sentence "I like swimming," the word "swimming" is a gerund and functions as the direct object of the verb "like."
Conclusion
Gerunds are verb forms that function as nouns.
Gerunds can be used as the subject or object of a sentence.