The cooking time for spaghetti can vary depending on the brand and thickness of the pasta. As a general guideline, it usually takes about 8-10 minutes to boil spaghetti until it is cooked to an al dente texture.

Here's how to boil spaghetti:

  1. Fill a large pot with enough water to fully cover the pasta.

  2. Bring the water to a rolling boil over high heat.

  3. Add a pinch of salt to the water (optional).

  4. Add the spaghetti to the boiling water and stir it gently to prevent the pasta from sticking together.

  5. Cook the spaghetti for 8-10 minutes or until it is al dente, which means it is cooked through but still slightly firm to the bite.

  6. Once the spaghetti is cooked, use a colander to drain the water.

  7. Rinse the spaghetti under cold running water to stop the cooking process.

  8. Serve the spaghetti with your favorite sauce and toppings.