Most plaintiff PI firms know their gross fee number cold but cannot tell you within two percentage points what they actually spent prosecuting last year's resolved files. That is not a bookkeeping failure. It is a profit-and-loss blind spot that quietly drains contingent practices, especially mid-tier shops running 200 to 600 open files with no dedicated cost accountant.
Cost-of-prosecution tracking sits at the awkward intersection of trust accounting, tax treatment, and case strategy. Done well, it tells you which referral sources actually pay for themselves, which case types are bleeding capital, and which line items belong on the client's disbursement statement versus the firm's overhead column. Done poorly — which describes most of the industry — it produces a number on the closing statement that bears only loose resemblance to what the file consumed.
The Two-Bucket Distinction Most Firms Get Wrong
Every cost a PI firm incurs falls into one of two buckets: advanced costs (specific to a client matter, subject to recovery from settlement proceeds) and overhead (firm-level expense paid out of the fee). The line between them is not always intuitive, and both California's fee rules and federal tax treatment treat the bucket assignment as material.
Under California Rule of Professional Conduct 1.8.5, a lawyer may pay or advance the expenses of litigation with repayment contingent on outcome. That permission is not a license to shovel anything into the client-cost column. Court reporters, expert retainers, filing fees, deposition transcripts, medical-record retrieval, investigator fees, mediation fees, focus-group costs tied to a specific file, and travel for client-specific depositions are clean advanced costs. Westlaw subscriptions, paralegal salaries, office rent, your case-management software, and the intake team's payroll are not — even though they were undeniably consumed in service of the same files.
The federal tax treatment hardens this line. Advanced client costs are treated as loans to the client, not deductible when paid, only when written off as uncollectible. Misclassifying overhead as advanced costs to harvest a current-year deduction is the kind of thing that survives an audit poorly. Conversely, treating a true client cost as overhead means you have given up a recoverable expense at resolution.
Capture at Intake: Codes That Survive the File's Whole Life
The single most consequential change most firms can make is fixing the chart of cost codes before the first dollar goes out the door. A defensible cost ledger needs codes granular enough to answer three questions at year-end: which case type generated this spend, which vendor received it, and whether it was recoverable from the client at resolution.
At a minimum, that means separate codes for medical-record retrieval, treating-provider records versus IME records, expert retainers, expert deposition time, expert trial time, court reporter appearance fees versus transcript fees, mediator fees split between joint and party-pay portions, filing and service, investigator fees, accident reconstruction, life-care planning, vocational rehab, economist work, and demonstrative exhibit production. Lumping all of this under a single "case costs" line is the practical equivalent of not tracking it at all.
This level of detail also lets you do the math after the fact on which case types pay back their cost basis. A motor-vehicle file with $4,800 in advanced costs and a $42,000 settlement looks very different from a premises file with $38,000 in costs and a $280,000 settlement on a per-hour-of-attorney-time basis. Most firms learn this only after the bad year.
The Real Carrying Cost of an Open File
Hard costs are the visible portion of cost-of-prosecution. The invisible portion is the time value of money on funds your firm fronted, sometimes years before resolution. A $25,000 expert retainer paid in month four of a file that resolves in month thirty-six has carried at whatever your firm's marginal cost of capital is — line-of-credit rate, factoring discount, or principal opportunity cost — for two and a half years.
Litigation funding has made this calculation explicit for firms that use it. For firms that self-fund out of operating cash, the carrying cost is still real but unbooked. Recent reporting on AI demand tools and shifting lien economics framed the cycle-time question around client experience and lien negotiation, but the same math applies to cost carry: every month an advanced expert retainer sits on the books is a month of capital your firm cannot deploy on the next file.
Tracking days-outstanding on advanced costs by case type gives you a defensible internal benchmark. Firms that build this report quarterly tend to discover, often unhappily, that a handful of expert-heavy cases account for a wildly disproportionate share of working capital. That insight tends to change intake criteria within a quarter.
What You Actually Recover at Settlement
California Rule of Professional Conduct 1.5 governs the closing statement, and Business and Professions Code section 6147 governs the underlying contingency fee agreement. Both require that the client receive a written statement showing the outcome of the matter and the method by which the lawyer's fee and the client's costs were calculated. The cost line on that statement is enforceable only to the extent it tracks what your agreement and your ledger actually support.
Two practical points get firms in trouble at this stage. First, the contingency percentage is calculated on the gross recovery before costs, after costs, or on some other basis depending on what the retainer says — and a retainer that is ambiguous on this point will be construed against the drafter. Get this clean at the front end, in plain language, with a separate signature line acknowledging it. Second, costs advanced must be itemized on the disbursement statement with enough specificity that the client can match each line to a vendor invoice in your file. "Litigation costs: $14,832" is not an itemization.
Statutory cost recovery against a defendant under Code of Civil Procedure section 1033.5 and California Rules of Court 3.1700 is a separate matter from client-side cost recovery. The two get conflated in firm accounting more often than they should. A memorandum of costs filed after a verdict captures only the subset of advanced costs that qualify as recoverable from the judgment debtor — generally filing fees, deposition costs, statutory witness fees, jury fees, and a narrow band of others. Expert witness fees come back only on the limited bases the statute provides, including a CCP 998 offer the defendant failed to beat. The amount that comes back through that mechanism rarely covers more than a fraction of what the file actually consumed, and even less on cases that resolve pre-trial.
What You Absorb, and Why That Is Sometimes the Right Call
Some costs you eat. Costs on a file you ultimately decline to file, or that resolves below the cost basis where the retainer terms or the client's circumstances make recovery practically impossible, are operating losses, not receivables. Pretending otherwise inflates your books and, if you are running on a line of credit secured by case inventory, eventually misleads your lender.
The harder judgment call is when to write off advanced costs on a settled file because the recovery is small and the client is sympathetic. The math here is not just charity. A retainer that lets the firm reduce its own fee but not the costs makes the client whole only if costs are modest relative to recovery. On a file where strict cost recovery would leave a badly injured client with three figures of net proceeds, most experienced PI partners will absorb some portion of the costs rather than send out that closing statement. Build that latitude explicitly into your fee agreement so the decision is yours to make, not forced by a poorly drafted document.
Medical liens deserve separate attention. As recent coverage of records-handling workflows has noted, the line between a lien obligation that travels with the settlement and an advanced cost that the firm fronted to keep treatment moving has blurred in the past two years. If your firm advances funds to a provider to keep care going during litigation, that is an advanced cost subject to recovery — not a lien, and not the client's overhead. Track it as such, and document the advance with the same paper trail you use for an expert retainer.
Building the Report That Actually Drives Decisions
The end product is not a balance-sheet line. It is a monthly report that tells the managing partner, by case type and referral source: average advanced cost per file, average days from advance to recovery, percentage of advanced costs ultimately recovered, percentage written off, and the carry cost of unresolved file inventory. Three quarters of that data already lives in your case-management software and your accounting platform. The remaining quarter is the discipline to enter cost codes correctly the first time and to reconcile the case ledger against the trust-accounting ledger at closing. Trust-side compliance is a separate discipline — the July 1 IOLTA notice deadline and the revised 14/45-day rules are the current item there — but the cost ledger and the trust ledger have to agree at the closing-statement moment, every time.
Firms that build this report and read it quarterly tend to make different intake decisions, retain experts differently, and price contingency exposure on hard files more realistically. Firms that do not tend to look at year-end fee totals and wonder where the money went.
The cost ledger is not glamour work. It is the difference between a PI practice that compounds and one that runs faster every year to stay in the same place.