General Motors Corp. plans to idle most its plants for about two months this summer as the company races to cut costs and production to keep pace with sinking demand, said a person familiar with the plan.

The car maker typically closes its plants for a two-week summer vacation. A GM spokeswoman declined to confirm or deny the planned closure.

Such...