A gerund is not really a verb, but is made from a verb. Verbs ending in -ing, are the continuous form of the verb.
However a verb ending in –ing may also be a present participle and acts more like a verb or an adjective
or it may be a gerund and is more like a noun,
It is important to understand that they are not the same.
The gerund is used when a verb comes after a preposition.
The gerund is used when the verb becomes the subject of the sentence.
We ended up giving her more time off.
In compound nouns using the gerund, it is clear that the meaning is that of a noun, not of a continuous verb. For example, with the word “swimming pool” it is a pool for swimming in, it is not a pool that is swimming.
Thus the -ing form of the verb can function as a noun, adjective an adverb as well as a verb; in certain sentences the distinction can be arbitrary.