Attorney Fee Calculator — Complete Guide & How to Use
9 min read
Published April 8, 2026 • By DocketMath Team
Attorney Fee Calculator — Complete Guide & How to Use
Choosing the right fee structure can shape a matter’s budget and forecasting. DocketMath’s Attorney Fee Calculator helps you estimate legal fees from common billing inputs so you can compare pricing models, project totals, and sanity-check an invoice before it surprises you.
Use it as a planning tool, a budgeting aid, or a quick way to model how hourly rates, flat fees, retainers, and contingency-style outcomes affect the final number. It is built for fast calculations, not legal conclusions.
What this calculator does
DocketMath’s Attorney Fee Calculator estimates attorney fees based on the pricing method you select and the numbers you enter. In practical terms, it helps you answer questions like:
- What will this matter cost at an hourly rate?
- How much should I budget if the fee is flat?
- What does a retainer cover, and what happens when it runs out?
- If a contingency fee applies, what is the estimated recovery to the client and fee to counsel?
- How do multiple billing lines or time entries add up?
The calculator is useful because legal billing often combines several moving parts:
| Input | What it affects | Typical impact |
|---|---|---|
| Hourly rate | Total labor cost | Higher rate = higher fee |
| Hours worked | Total labor cost | More hours = higher fee |
| Flat fee | Fixed project cost | Output stays constant unless add-ons are included |
| Retainer amount | Upfront collected funds | Determines how much is prepaid versus still owed |
| Contingency percentage | Fee share from recovery | Higher percentage = higher fee and lower net recovery |
| Disbursements / costs | Total matter cost | Increases overall client spend |
If you are comparing fee arrangements, the calculator can show the difference between:
- Hourly billing under a rate-and-time model
- Flat-fee billing for a defined service
- Retainer-based billing where funds are drawn down against work performed
- Contingency-style estimates tied to a percentage of recovery
For reference, some legal billing standards are governed by court rules or ethics rules rather than calculator math. For example, ABA Model Rule 1.5 lists factors for reasonableness of a fee, including time, labor, novelty, skill, customary fee, and results obtained. Those legal standards matter, but the calculator’s role is narrower: it estimates the dollars.
Note: DocketMath calculates estimates from the numbers you provide. It does not decide whether a fee is reasonable under Rule 1.5 or whether a particular arrangement is compliant with a specific court order or fee statute.
A few output patterns are worth watching:
- Increasing hours increases hourly totals linearly.
- Increasing rate raises the total by the same percentage.
- Increasing a contingency percentage directly increases the fee share.
- Adding costs such as filing fees or expert fees raises the total matter spend, even if the attorney fee itself stays the same.
If you want to run the calculator now, open the tool here: /tools/attorney-fee.
When to use it
This calculator is most helpful before a bill is sent, while a matter is active, or when you need a quick estimate for planning.
Use it when you are:
- Building a client budget for a new engagement
- Comparing hourly billing against a flat fee
- Checking whether a retainer is likely to cover expected work
- Estimating an invoice from multiple time entries
- Modeling a contingency fee on a projected recovery
- Reviewing whether a quoted fee lines up with expected work
- Summarizing likely fees for internal approval or matter scoping
It also helps in day-to-day billing conversations. A partner can use it to forecast revenue, a paralegal can use it to total billed time, and a client-facing team can use it to explain why a matter may cost more than expected when the hours climb.
Here are common situations where the calculator adds clarity:
Early case budgeting
- Enter the expected hours and hourly rate.
- Add likely costs such as court fees or service charges.
- Review a working budget before work begins.
Flat-fee proposal review
- Compare a flat quote against the likely hourly equivalent.
- Spot whether a project is priced aggressively or conservatively.
Retainer monitoring
- Estimate how many hours a retainer covers.
- Track the balance left before replenishment is needed.
Settlement planning
- Model a contingency percentage against an expected recovery.
- Estimate how much remains after the fee is taken.
Invoice sense-checking
- Add line-item hours by rate.
- Identify whether the total is consistent with the narrative on the bill.
Step-by-step example
Let’s walk through a simple hourly-fee scenario.
Example: hourly matter with costs
Suppose a matter uses the following terms:
- Attorney hourly rate: $350
- Paralegal hourly rate: $140
- Attorney time: 18.5 hours
- Paralegal time: 6.0 hours
- Filing and service costs: $425
- Retainer collected: $5,000
Step 1: enter the billing rates
Start by entering each professional’s rate.
- Attorney: $350/hour
- Paralegal: $140/hour
Step 2: enter the time
Add the hours worked by each role.
- Attorney: 18.5 hours
- Paralegal: 6.0 hours
Step 3: let the calculator total labor
The calculator multiplies time by rate.
- Attorney labor: 18.5 × $350 = $6,475
- Paralegal labor: 6.0 × $140 = $840
Combined attorney fee subtotal:
- $7,315
Step 4: add costs
Next, add non-fee expenses.
- Filing/service costs: $425
Total matter cost before retainer application:
- $7,740
Step 5: compare against the retainer
Now subtract the prepaid amount.
- Retainer collected: $5,000
- Remaining balance: $2,740
That gives you a quick estimate of what is still due if the retainer is fully applied.
What changes the output?
Small input changes have predictable effects.
| Change | New result |
|---|---|
| Attorney rate rises from $350 to $400 | Attorney labor increases from $6,475 to $7,400 |
| Attorney time rises from 18.5 to 20.0 hours | Attorney labor increases by $525 |
| Filing costs rise from $425 to $600 | Total matter cost increases by $175 |
| Retainer rises from $5,000 to $7,500 | Remaining balance drops from $2,740 to $0 |
Example: contingency fee
Now consider a different structure:
- Expected settlement: $120,000
- Contingency fee: 33.33%
- Case costs advanced: $4,800
Calculation:
- Attorney fee: 33.33% of $120,000 = $39,996 if calculated literally from 33.33%
- Net to client before costs: $80,004
- After costs: $75,204
Because contingency calculations can depend on exact percentage formatting and settlement language, even a small decimal difference can change the fee by dollars or more. If you need a cleaner estimate, use the exact percentage and recovery amount you expect to see in the agreement.
Common scenarios
Different billing models call for different ways of using the calculator. The table below maps the most common use cases to the inputs that matter most.
| Scenario | Best inputs | What to watch |
|---|---|---|
| Routine hourly matter | Rate, hours, costs | Time rounding and multiple timekeepers |
| Flat-fee engagement | Flat fee, costs | Whether expenses are included or separate |
| Retainer-based project | Retainer, hourly totals, costs | Drawdown timing and replenishment triggers |
| Contingency representation | Recovery amount, percentage, costs | Exact percentage and cost treatment |
| Mixed billing | Hourly + flat + costs | Double-counting and hidden add-ons |
| Internal budget estimate | Expected hours, blended rate | Underestimating senior time or revisions |
1. Hourly billing
This is the simplest model. Multiply hours by rate, then add expenses.
Use it when:
- Work volume is uncertain
- Tasks are likely to expand
- The matter has multiple professionals billing at different rates
2. Flat fee
A flat fee is easier to forecast because the core fee does not change with time.
Use it when:
- The scope is tightly defined
- The deliverable is repeatable
- The parties want budget certainty
The calculator helps you compare the flat number against a hypothetical hourly total, which is useful when deciding whether the flat quote is aggressive or conservative.
3. Retainer
A retainer usually works like a prepaid balance that gets drawn down as work is done.
Use it when:
- The engagement starts before a final scope is clear
- The client wants an upfront payment
- The firm wants security against nonpayment
A key output is the remaining retainer balance after estimated fees and costs. If the balance is negative, that means the retainer does not fully cover the expected work.
4. Contingency fee
With contingency pricing, the fee is tied to recovery rather than hours.
Use it when:
- The engagement agreement is recovery-based
- The amount in dispute is likely to resolve in settlement or judgment
- You need to estimate both counsel’s share and client net proceeds
The calculator is especially helpful here because a percentage shift can have a large dollar effect. A move from 30% to 33.33% on a six-figure recovery is not a minor rounding issue.
5. Mixed billing models
Some matters use a hybrid structure, such as:
- Flat fee for intake
- Hourly billing for litigation
- Costs billed separately
- A cap on certain phases
This is where the calculator becomes a planning aid. Enter each component separately and sum them rather than trying to force everything into a single bucket.
Tips for accuracy
Good estimates start with disciplined inputs. The calculator is only as precise as the numbers you feed it.
Use this checklist before you calculate:
Related reading
- Worked example: attorney fee calculations in Vermont — Worked example with real statute citations
