The attorney's fee: compensation for the work
The contingency fee is the attorney's own compensation for handling the case — calculated as a percentage of the settlement or award. It's earnings, not a reimbursement, and it's what the attorney keeps for taking on the risk and the work of the case.
Case costs: real expenses the case required
Case costs are something entirely different: actual out-of-pocket expenses the case genuinely needed. This typically includes expert witness fees, court filing fees, the cost of obtaining medical records, deposition transcripts, and similar litigation expenses. These are reimbursed, not earned.
Hawaii's own rule addresses the interaction directly
Hawaii Rule of Professional Conduct 1.5(d) doesn't leave this to chance: it specifically requires the written fee agreement to state what litigation expenses will be deducted from the recovery, and whether those expenses are deducted before or after the contingent fee itself is calculated. Few states' ethics rules spell out this specific mechanical detail as explicitly.
Why the order genuinely matters
Calculating the attorney's fee as a percentage of the full settlement before subtracting case costs produces a different net result than calculating the fee after costs have already been subtracted. On a meaningful settlement with real litigation costs, that difference in methodology can add up to a real dollar amount — which is exactly why Hawaii's rule requires it to be specified up front.
Who fronts the money while the case is pending
Commonly, the attorney's office advances case costs as the litigation proceeds, with reimbursement coming out of the eventual settlement or award. The specific arrangement, including what happens to those advanced costs if the case doesn't result in any recovery, should be addressed in the same written agreement.