Learning the difference between gerunds and infinitives is challenging when learning English. Gerunds are formed using the verb plus "-ing" and can function as the subject of a clause or after prepositions. Infinitives use "to" plus the verb and are used after modal verbs or verbs not followed by gerunds. Some verbs like "forget" or verbs of preference can take either a gerund or infinitive but the meaning may change depending on which is used.