Is the sentence below grammatically correct?

The more the area is painted, the less the amount of paint remains.

syntactically correct, but not semantically.

Better would be

The more the area is painted, the less paint remains.

Even that is misleading, because maybe the same area is painted repeatedly. So, better would be

The more area that is painted, the less paint remains.