Mr. and Mrs. Comunale were struck in a marked pedestrian crosswalk by a truck driven by Percy Sloan. Mr. Comunale was seriously injured, and his wife suffered minor injuries. Sloan was insured by defendant Traders and General Insurance Company under a policy that contained limits of liability in the sum of $10,000 for each person injured and $20,000 for each accident. He notified Traders of the accident and was told that the policy did not provide coverage because he was driving a truck that did not belong to him. When the Comunales filed suit against Sloan, Traders refused to defend the action, and Sloan employed competent counsel to represent him. On the second day of the trial Sloan informed Traders that the Comunales would compromise the case for $4,000, that he did not have enough money to effect the settlement, and that it was highly probable the jury would return a verdict in excess of the policy limits. Traders was obligated to defend any personal injury suit covered by the policy, but it was given the right to make such settlement as it might deem expedient. Sloan demanded that Traders assume the defense and settlement of the ease. Traders refused, and the trial proceeded to judgment in favor of Mr. Comunale for $25,000 and Mrs. Comunale for $1,250.
Sloan did not pay the judgment, and the Comunales sued Traders under a provision in the policy that permitted an
*658
injured party to maintain an action after obtaining judgment against the insured. (See Ins. Code, § 11580, subd. (b) (2).) In that suit judgment was rendered in favor of Mr. Comunale for $10,000 and in favor of Mrs. Comunale for $1,250. This judgment was satisfied by Traders after it was affirmed in
Comunale
v.
Traders & General Ins. Co.,
Comunale obtained an assignment of all of Sloan’s rights against Traders and then commenced the present action to recover from Traders the portion of his judgment against Sloan which was in excess of the policy limits. The jury returned a verdict in Comunale’s favor, but the trial court entered a judgment for Traders notwithstanding the verdict.
The following questions are presented on Comunale's appeal from the judgment: (1) Did Sloan have a cause of action against Traders for the amount of the judgment in excess of the policy limits? (2) Was Sloan’s cause of action against Traders assignable? (3) Was the cause of action barred by the statute of limitations?
Liability in Excess of the Policy Limits
In determining whether Traders is liable for the portion of the judgment against Sloan in excess of the policy limits, we must take into consideration the fact that Traders not only wrongfully refused to defend the action against Sloan but also refused to accept an offer of settlement within the policy limits. It is not claimed the settlement offer was unreasonable in view of the extent of the injuries and the probability that Sloan would be found liable, and Traders’ only reason for refusing to settle was its claim that the accident was not covered by the policy. Because of its wrongful denial of coverage, Traders failed to consider Sloan’s interest in having the suit against him compromised by a settlement within the policy limits.
There is an implied covenant of good faith and fair dealing in every contract that neither party will do anything which will injure the right of the other to receive the benefits of the agreement.
(Brown
v.
Superior Court,
The insurer, in deciding whether a claim should be compromised, must take into account the interest of the insured and give it at least as much consideration as it does to its own interest. (See
Ivy
v.
Pacific Automobile Ins. Co.,
156 Cal.App.2d. 652, 659 [
There is an important difference between the liability of an insurer who performs its obligations and that of an insurer who breaches its contract. The policy limits restrict only the amount the insurer may have to pay in the performance of the contract as compensation to a third person for personal injuries caused by the insured; they do not restrict the damages recoverable by the insured for a breach of contract by the insurer.
The decisive factor in fixing the extent of Traders’ liability is not the refusal to defend; it is the refusal to accept an offer of settlement within the policy limits. Where there is no opportunity to compromise the claim and the only wrongful act of the insurer is the refusal to defend, the liability of the insurer is ordinarily limited to the amount of the policy plus attorneys’ fees and costs.
(Mannheimer Bros.
v.
Kansas Casualty & Surety Co.,
Most of the cases dealing with the insurer’s failure to settle involve an insurer who had assumed the defense of the action against the insured. It is generally held that since the insurer has reserved control over the litigation and settlement it is liable for the entire amount of a judgment against the insured, including any portion in excess of the policy limits, if in the exercise of such control it is guilty of bad faith in refusing a settlement.
(Brown
v.
Guarantee Ins. Co.,
We do not agree with the eases that hold there is no liability in excess of the policy limits where the insurer, believing there is no coverage, wrongfully refuses to defend and without justification refuses to settle the claim. (See
State Farm Mut. Auto. Ins. Co.
v.
Skaggs,
A breach which prevents the making of an advantageous settlement when there is a great risk of liability in
*661
excess of the policy limits will, in the ordinary course of things, result in a judgment against the insured in excess of those limits. Section 3300 of the Civil Code provides that the measure of damages for a breach of contract is the amount which will compensate the party aggrieved for all the detriment proximately caused by the breach, or which, in the ordinary course of things, would be likely to result from it. (For cases holding Civ. Code § 3300 applicable to liability insurance contracts, see
Henkel
v.
Pacific Employers Ins. Co.,
It is clear that section 3300 of the Civil Code authorizes a recovery in excess of the policy limits, and in our opinion there is no merit in Traders’ contention that section 3358 of the Civil' Code so qualifies section 3300 as to prevent such a recovery. Section 3358 provides that a person cannot recover a greater amount in damages for the breach of an obligation than he could have gained by full performance. The question is what would Sloan have gained from the full performance of the policy contract with Traders.
(Cf. Henderson
v.
Oakes-Waterman, Builders,
It follows from what we have said that an insurer, who wrongfully declines to defend and who refuses to accept a reasonable settlement within the policy limits in violation of its duty to consider in good faith the interest of the insured in the settlement, is liable for the entire judgment against the insured even if it exceeds the policy limits.
Assignability of the Cause of Action
, An action for damages in excess of the policy limits based on an insurer’s wrongful failure to settle is assignable whether the action is considered as sounding in tort or in contract. (See Civ. Code, § 954;
Brown
v.
Guarantee Ins. Co.,
Statute of Limitations
Sloan’s cause of action against the insurer arose on August 13, 1950, when the judgment in the bodily injury action became final. The complaint in the present action was filed on May 28, 1954, less than four years but more than two years after the cause of action arose. Traders contends that an action on an implied obligation arising out of contract is not on the written instrument and that therefore the four-year term prescribed in section 337, subdivision 1, of the Code of Civil Procedure is not applicable.
*
We do not agree. The promise which the law implies as an element of the contract is as much a part of the instrument as if it were written out.
(O’Brien
v.
King,
*663
Although a wrongful refusal to settle has generally been treated as a tort (see Keeton,
Liability Insurance and Responsibility for Settlement,
67 Harv. L. Rev. 1136, 1138; Anno.,
The judgment is reversed with directions to the superior court to enter judgment on the verdict.
Shenk, J., Carter, J., Traynor, J., Schauer, J., Spence, J., and McComb, J., concurred.
Respondent’s petition for a rehearing was denied August 21, 1958.
Notes
Code of Civil Procedure, section 337, subdivision 1, provides in part that the four years’ period of limitation applies to an action “upon any contract, obligation or liability founded upon an instrument in writing, ...”
Code of Civil Procedure, section 339, subdivision 1, provides in part that the two years’ period of limitation applies to an action “upon a contract, .obligation or liability not founded upon an instrument. of writing, ...”
