Skip to main content

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

GET /api/rebar-pricing
Cookie: sAccessToken=...; sRefreshToken=...

Roles: ADMIN, ESTIMATOR, PM


Create Rebar Rate

POST /api/rebar-pricing
Cookie: sAccessToken=...; sRefreshToken=...
Content-Type: application/json

{
"size": "#6",
"weightPerFoot": 1.502,
"pricePerPound": 0.80,
"description": "Grade 60, #6 rebar"
}

Roles: ADMIN

Required Fields:

  • size (string) - Rebar size (#3, #4, #5, #6, #7, #8, #9, #10, #11)
  • weightPerFoot (number) - Weight in pounds per linear foot
  • pricePerPound (number) - Cost per pound

Common Rebar Sizes:

SizeDiameterWeight (lb/ft)Typical Use
#30.375"0.376Light slabs, walls
#40.500"0.668Residential slabs, footings
#50.625"1.043Commercial slabs, beams
#60.750"1.502Heavy slabs, columns
#70.875"2.044Structural beams
#81.000"2.670Heavy structural
#91.128"3.400Heavy structural
#101.270"4.303Heavy structural
#111.410"5.313Heavy structural

Update Rebar Rate

PUT /api/rebar-pricing/:id
Cookie: sAccessToken=...; sRefreshToken=...
Content-Type: application/json

{
"pricePerPound": 0.88
}

Roles: ADMIN


Delete Rebar Rate

DELETE /api/rebar-pricing/:id
Cookie: sAccessToken=...; sRefreshToken=...

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;
}