(Length of area * width of area * cost of floor materials in square feet + (length + width) * cost of railing per foot + permit or inspection fees) / (length * width)= cost of building a deck per square foot.
First, figure out the dimensions of your project. Then determine the area of your deck project. If your project is not a square or rectangle you need to add those extra ares. Then get an estimate of the cost of the project. Finally you would divide the cost in dollars by the total square footage (Cost $/square foot area).