How many times can a complaint be amended?

How many times can a complaint be amended?

(e) (1) In response to a demurrer and prior to the case being at issue, a complaint or cross-complaint shall not be amended more than three times, absent an offer to the trial court as to such additional facts to be pleaded that there is a reasonable possibility the defect can be cured to state a cause of action.

When can a party amend a complaint?

P. 15(a) provides that a party may amend a claim once as a matter of course any time before a responsive pleading is served. If the pleading is one to which no responsive pleading is permitted, and the action has not been placed upon the trial calendar, a party may amend any time within 20 days of service.