calculate_fab_cost
Estimate PCB fabrication cost from layer count, quantity, board size, surface finish, thickness, solder mask color, lead time, and tiered pricing.
Instructions
Estimate PCB fabrication cost from fab-house published tiered pricing: layers (2/4/6), quantity tiers (5/10/30/100), area surcharge beyond 100x100mm, solder mask color, surface finish (HASL/ENIG/OSP), board thickness, and lead time (normal/48h/24h). Estimate only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | No | Layer count (2, 4, or 6; default 4). | |
| quantity | No | Board quantity (default 5). | |
| lead_time | No | Lead time: normal (x1.0), fast_48h (x1.5), urgent_24h (x2.5). | normal |
| thickness_mm | No | Board thickness in mm: 0.6/0.8/1.0/1.2/1.6 (default)/2.0. | 1.6 |
| board_width_mm | No | Board width in mm (default 100). | |
| surface_finish | No | Surface finish: hasl_lead (free), hasl_lead_free (+15), enig (+80), osp (free), silver (+45). | hasl_lead_free |
| board_height_mm | No | Board height in mm (default 100). | |
| solder_mask_color | No | Solder mask color: green (free), red/yellow/blue (+25), black/white (+40), matte (+60). | green |