Pasta is made with egg, water and flour. Gnocchi is made with mashed potatoes. Gnocchi are small potato dumplings, while pasta is made from a more simple dough, and cut into thinner pieces. They are both cooked and served similarly.