For pesto, short, ridged pasta is often the best choice because it holds onto the sauce well. Some of the best options include penne, fusilli, rotini, and farfalle (bow-tie) pasta. Longer pasta shapes, such as spaghetti or linguine also work.