Fresh pasta usually takes about 2-3 minutes to cook. However, the cooking time may vary depending on the thickness and shape of the pasta. It is important to keep an eye on the pasta while it's cooking to ensure it doesn't overcook or become mushy. Fresh pasta should be cooked in a large pot of boiling salted water until it is tender but still firm to the bite.