By the board foot: one square foot of foam one inch thick. Multiply area by thickness, then by the rate for the product. Closed-cell runs roughly $1.50-$2.50 per board foot in Central Ohio and open-cell roughly $0.50-$1.20.
More detail
A worked example keeps quotes honest. A 1,000-square-foot roof deck on a Powell two-story sprayed with 3 inches of closed-cell is 3,000 board feet, or $4,500 to $7,500 at those rates before prep. The same deck at 6 inches is 6,000 board feet and roughly double the money. That is why a low total means nothing until you know the thickness behind it, and why two bids for closed-cell on the roof deck can be thousands apart. Ask every bidder for area, thickness, and product on each surface, then check the thickness against what the surface needs: about 3 inches of closed-cell to reach the R-20 condensation-control layer the Ohio code requires under a Zone 5 unvented roof with batts below it, and about 7 inches to reach R-49 with closed-cell alone. The quote comparison checklist turns this into a side-by-side.