1. He admitted cheating on the test.

2. He admitted having cheated on the test.
===========
Which one is grammatical?

1 answer

Both are correct.

1 might be used very soon after the cheating incident, and 2 somewhat later after the incident, but both really mean the same thing.