Rebar Pricing
Overview
The Rebar API manages pricing rates for reinforcing steel (rebar) used in concrete items. Rebar costs are automatically calculated based on bar size, spacing, and concrete dimensions.
List Rebar Rates
- Request
- Response
GET /api/rebar-pricing
Cookie: sAccessToken=...; sRefreshToken=...
[
{
"id": "uuid",
"size": "#4",
"weightPerFoot": 0.668,
"pricePerPound": 0.85,
"description": "Grade 60, #4 rebar",
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-01-20T14:30:00.000Z"
},
{
"id": "uuid",
"size": "#5",
"weightPerFoot": 1.043,
"pricePerPound": 0.82,
"description": "Grade 60, #5 rebar"
},
...
]
Roles: ADMIN, ESTIMATOR, PM
Create Rebar Rate
- Request
- Response
POST /api/rebar-pricing
Cookie: sAccessToken=...; sRefreshToken=...
Content-Type: application/json
{
"size": "#6",
"weightPerFoot": 1.502,
"pricePerPound": 0.80,
"description": "Grade 60, #6 rebar"
}
{
"id": "uuid",
"size": "#6",
"message": "Rebar rate created successfully"
}
Roles: ADMIN
Required Fields:
size(string) - Rebar size (#3, #4, #5, #6, #7, #8, #9, #10, #11)weightPerFoot(number) - Weight in pounds per linear footpricePerPound(number) - Cost per pound
Common Rebar Sizes:
| Size | Diameter | Weight (lb/ft) | Typical Use |
|---|---|---|---|
| #3 | 0.375" | 0.376 | Light slabs, walls |
| #4 | 0.500" | 0.668 | Residential slabs, footings |
| #5 | 0.625" | 1.043 | Commercial slabs, beams |
| #6 | 0.750" | 1.502 | Heavy slabs, columns |
| #7 | 0.875" | 2.044 | Structural beams |
| #8 | 1.000" | 2.670 | Heavy structural |
| #9 | 1.128" | 3.400 | Heavy structural |
| #10 | 1.270" | 4.303 | Heavy structural |
| #11 | 1.410" | 5.313 | Heavy structural |
Update Rebar Rate
- Request
- Response
PUT /api/rebar-pricing/:id
Cookie: sAccessToken=...; sRefreshToken=...
Content-Type: application/json
{
"pricePerPound": 0.88
}
{
"id": "uuid",
"message": "Rebar rate updated successfully"
}
Roles: ADMIN
Delete Rebar Rate
- Request
- Response
DELETE /api/rebar-pricing/:id
Cookie: sAccessToken=...; sRefreshToken=...
{
"message": "Rebar rate deleted successfully"
}
Roles: ADMIN
warning
Deleting a rebar rate will affect cost calculations for concrete items using that size. Update pricing instead of deleting.
Rebar Calculation Logic
When a concrete item includes rebar, the cost is calculated as:
// 1. Calculate linear feet of rebar needed
const area = length * width; // Square feet
const spacing = 12; // inches (e.g., #4 @ 12" o.c.)
const barsInOneDirection = Math.ceil((length * 12) / spacing);
const barsInOtherDirection = Math.ceil((width * 12) / spacing);
const totalLinearFeet =
barsInOneDirection * width + barsInOtherDirection * length;
// 2. Calculate weight
const weightPerFoot = 0.668; // For #4 rebar
const totalWeight = totalLinearFeet * weightPerFoot;
// 3. Calculate cost
const pricePerPound = 0.85;
const rebarCost = totalWeight * pricePerPound;
Example Calculation
Slab: 50' x 40' with #4 rebar @ 12" o.c. both ways
Bars lengthwise: ceil(50 * 12 / 12) = 50 bars
Bars widthwise: ceil(40 * 12 / 12) = 40 bars
Linear feet lengthwise: 50 bars * 40' = 2,000 LF
Linear feet widthwise: 40 bars * 50' = 2,000 LF
Total linear feet: 4,000 LF
Weight: 4,000 LF * 0.668 lb/ft = 2,672 lbs
Cost: 2,672 lbs * $0.85/lb = $2,271.20
Data Model
interface RebarRate {
id: string;
size: string; // #3, #4, #5, etc.
weightPerFoot: number; // Pounds per linear foot
pricePerPound: number; // Cost per pound
description: string; // Optional description
createdAt: DateTime;
updatedAt: DateTime;
}
Related Endpoints
- Concrete Items - Reference rebar rates in concrete calculations
- Pricing - General pricing catalog