DEV Community

Tidy Cents
Tidy Cents

Posted on

Why a flat per-acre price is wrong: a cost-plus pricing curve in Python

Service businesses that charge per unit of area (mowing, cleaning, painting) often use one flat rate. The cost structure disagrees: part of each job's cost is fixed per visit (the drive), and the rest scales with size. Divide a fixed cost by a small area and the per-unit price explodes.

Here is the whole model with exact fractions. Three things are deliberately explicit:

  • Labor is paid for driving too, machines are not running while driving. So travel goes into labor, not into equipment.
  • Overhead is spread over billable on-site hours, not calendar hours.
  • Margin is on price, not markup on cost. A 20% margin means cost / 0.8, which is a 25% markup.
from fractions import Fraction as F

def job_price(acres, min_per_acre=75, travel_min=40, wage=F(22), equip=F(16),
              overhead=F(650), billable_hours=120, margin=F(20, 100)):
    site_h = F(acres) * min_per_acre / 60
    labor = wage * (site_h + F(travel_min, 60))      # driving is paid too
    machines = equip * site_h                        # machines only run on site
    ovh = overhead / billable_hours * site_h
    cost = labor + machines + ovh
    return cost / (1 - margin)                       # margin on price, not markup

for a in ["0.25", "0.5", "1", "2", "3", "5", "10"]:
    p = job_price(F(a))
    print(f"{a:>5} acres  job {float(p):8.2f}  per acre {float(p / F(a)):7.2f}")
floor = F(75, 60) * (22 + 16 + F(650, 120)) / F(8, 10)
print(f"large-lot floor per acre: {float(floor):.2f}")
Enter fullscreen mode Exit fullscreen mode

Output:

 0.25 acres  job    35.29  per acre  141.17
  0.5 acres  job    52.25  per acre  104.51
    1 acres  job    86.17  per acre   86.17
    2 acres  job   154.01  per acre   77.01
    3 acres  job   221.85  per acre   73.95
    5 acres  job   357.53  per acre   71.51
   10 acres  job   696.72  per acre   69.67
large-lot floor per acre: 67.84
Enter fullscreen mode Exit fullscreen mode

The per-acre price converges to a floor (the cost of one acre with no travel at all) and rises steeply on small lots. Any single flat rate is either above the curve on big lots or below it on small ones.

A test worth writing: job_price(a) / a must be strictly decreasing in a while travel is positive, and must approach the floor from above.

Free browser version with the full table: Lawn Care Pricing Calculator (no sign-up).

Top comments (0)