DIY Shed Cost Calculator

Created by Kenneth Alambra
Reviewed by Wojciech Sas, PhD candidate and Jack Bowater
Last updated: Jun 17, 2022

This DIY shed cost calculator will help you estimate the cost to build a DIY shed depending on the dimensions you would like it to be and the type of roofing you decide your shed should have. This tool also works as a shed roof rafter span calculator and a general shed material calculator, whether you plan to build your own storage shed or want to learn something about sheds in general.

In this tool, you will learn about the basics of building a shed and the different factors that affect the amount of materials you need when building a shed. You will learn how to perform shed material calculations, whether for a flat-roof shed, a slant-roof shed, or a gable-roof shed. Keep on reading to start learning!

Why build a shed?

Building a shed gives us a little bit of additional storage space for our things at home. If you like spending your time taking care of your lawn or your outdoor plants, a garden shed would be a great fit for you, especially if you start to invest in gardening tools. A lawnmower, shovels, rakes, and some gardening materials like bags of fertilizer, or bags of river rocks can all find their home in your humble shed, or you might need to use it to store your bicycle and its associated tools.

The image of a simple backyard shed.

Regardless of what you need to store in your shed, building a shed on your own could be a fun experience to have. But like any construction project, the cost to build your DIY shed can skyrocket if you failed to plan properly. This is where this DIY shed cost calculator comes in handy.

How to use our DIY shed cost calculator?

Once you've decided on the basic design of your DIY shed, the next thing to do is to finalize its size so you can determine how much material you need for your project. After that comes the estimation of costs for your project. Here are the steps you should follow when using our DIY shed cost calculator to estimate the cost of your DIY shed:

  1. Select your shed roof type. We have three options for this: flat roof, slanted roof, and gable roof. Flat-roof sheds and gable-roof sheds are best for stand-alone backyard sheds. Slant-roof sheds or sheds with a single sloped roof, on the other hand, are perfect for a lean-to shed.
The illustration of the basic roof types.
  1. Enter the dimensions of your shed. These dimensions include the length and width of your shed, as well as the minimum height of your shed's wall. There will be a corresponding illustration for each shed roof type to assist you in entering the dimensions correctly.
  2. Depending on the shed roof type you chose, the next step is to input your desired roof rise. This feature applies to slant-roof sheds and gable-roof sheds. You can match your shed roof type to your house's roof pitch for uniformity.
  3. The next step is to enter the roof overhang length of your roof. Follow your local building code for this one so your storage shed will not have a roof overhang that is either too long or too short.
  4. Once you've followed steps 1-4, you will then already have results for the floor area, wall area, and roof area. Finally, you can enter the price per area of each of these measures to find the cost to build your DIY shed.

How do you calculate the cost to build a DIY shed?

To calculate the cost of building a DIY shed, consider the main parts of an average simple shed. A simple shed typically has a foundation of concrete slabs or wooden flooring with a floor joist system for support. Along the perimeter of the foundation are the shed's four walls, and on top of the walls is the roofing supported by a series of rafters.

To estimate how much a shed would cost, we can first find the floor area of the shed to find the cost of flooring, using the simple equation below:

Af = L * W,


  • Af - Floor area;
  • L - The length of the shed; and
  • W - The width of the shed.

Then we can determine the total wall area or wall square footage of the shed to find the cost of the wall materials. You can also use this total wall area to find how much material you will need to fully apply any finishing, whether you want to cover it with wall siding material or paint. Here is the equation you can use to find the total wall area:

Aw = 2 * (L + W) * H + (W * R * c),

  • Aw - Total wall area;
  • L - Again, the length of the shed;
  • W - The width of the shed;
  • H - The height of the wall;
  • R - The roof rise of the highest point of the roof from the wall height level; and
  • c - Roof-type constant: c=1 for slanted-roof shed and gable-roof shed, and c=0 for flat-roof shed.

In the equation above, the (W * R * c) part works out any triangle area formed by the gable due to the roof rise. Lastly, here is the equation you can use to calculate the roof area that you can use to estimate the cost of your shed's roofing:

Ar = S * t * (L + 2 * O),


  • Ar - Total roof area;
  • S - Rafter span;
  • t - Rafter constant: t=1 for slanted-roof shed and flat-roof shed, t=2 for gable-roof shed;
  • L - The length of the shed; and
  • O - The horizontal distance of roof extension or the roof overhang.

However, we need to find the rafter span first to calculate the total roof area. Good thing this tool is also a shed roof rafter span calculator, and this is the formula we used in such a case:

S = √((W + 2 * O)² + (c * R * t * (1 + 2 * O / W))²) / t,

where the variables are just the same as with the previous formulas.

Once we've determined all these areas, we can then find the cost of the materials for your DIY shed using this equation:

total cost = Af * Pf + Aw * Pw + Ar * Pr

where Pf, Pw, and Pr are the prices per unit area of flooring, wall, and roofing, respectively. To better understand these equations, consider an example calculation in the next section of this text.

Sample DIY slanted roof shed material calculation

Let's say you want to build a slanted-roof lean-to shed that will act as your garden shed. Let's say you decided to build a small shed with a length of 2.0 meters, a width (or depth) of 1.5 meters, and a wall height of 2.4 meters. It would be nice for its roofing to have a roof rise of 0.6 meters, and an overhang of 0.4 meters all around your garden shed.

The diagram of the slanted-roofed shed with its corresponding dimensions and measurements.

Like in our list of equations, we can start the calculation by finding the floor area of our shed, as shown below:

Af = L * W

Af = 2.0 m * 1.5 m = 3.0 m²

Then we can get the total wall area using its corresponding formula. Note, that for the roof-type constant, c, we should equate it to 1 since we are considering a slanted-roof shed.

Aw = 2 * (L + W) * H + (W * R * c)

Aw = 2 * (2.0 m + 1.5 m) * 2.4 m + (1.5 m * 0.6 m * 1)

Aw = 2 * (3.5 m) * 2.4 m + (0.9 m²) = 17.7 m²

Before we calculate the roofing area, we should first obtain the length of rafter we need to accommodate the 0.4-meter roof overhang. Here is the calculation for that:

S = √((W + 2 * O)² + (c * R * t * (1 + 2 * O / W))²) / t

S = √((1.5 m + 2 * 0.4 m)² + (1 * 0.6 m * 1 * (1 + 2 * 0.4 m / 1.5 m))²) / t

S = √((2.3 m)² + (0.6 m * (1 + 0.8 m / 1.5 m))²) / 1

S = √(5.29 m² + (0.92 m)²)

S = √(5.29 m² + 0.8464 m²) = √(6.1364 m²) = 2.477 m

Now that we're done with the shed roof rafter span calculation, we can now proceed to the calculation of the roofing area, as you can see below:

Ar = S * t * (L + 2 * O)

Ar = 2.477 m * 1 * (2.0 m + 2 * 0.4 m)

Ar = 2.477 m * 2.8 m = 6.936 m²

Since we have already evaluated the necessary areas for our DIY shed cost calculation, the last thing you have to do is multiply these calculated values by the estimated per unit area prices available to you 🙂.

However, you might be asking, how about the doors and windows? For now, let us consider using the same materials for the walls and the doors and windows. Although we would need some hardware like hinges and latches for these parts of the shed, the estimate we can get from this DIY shed cost calculator is already a good starting point 🙂.


How to build a shed by yourself: DIY shed

To build your own shed:

  1. Secure a shed plan. You can purchase one online, or you can design your own. Make sure to have it checked according to your local building code.
  2. Purchase the materials you need. These materials include materials for the foundation, flooring, walling, and roofing.
  3. Start with the foundation and work your way up. Fit any door and windows last.

How much does it cost to build a DIY shed?

A DIY shed typically costs around $25 to $200 per square foot, depending on your choice of materials. It turns out that DIY sheds made of wood cost more than those made of metal. Nevertheless, it would still cost you a lot less to build a shed yourself than to purchase a ready-built one if you already have the required building tools in your toolbox.

How do I move a shed DIY?

To move your shed, the first thing you need to do is to lift your shed off the ground using a lever or a hydraulic jack and then slip a trailer under your shed. You can also use some wooden boards that would protect your shed's bottom while you drag it to its new location. Secure your shed with chains or ropes to your tractor and drive slowly.

Where do I place a shed in my backyard?

You can either place your shed about a foot away from your house or near your fence, whichever best suits you. Either way, make sure to choose a place where water doesn't collect during the rainy season. Also, check with your local utility locator the position of any underground utilities in your backyard so you can avoid them if ever you need to dig deep.

Can I live in a shed in my backyard?

Yes and no. A backyard shed typically has enough space for various objects, but living alongside them might be really hard for you. Some criteria must also be met to consider a shed as "livable". Check your local zoning codes for these criteria before living in your shed. But, if you only plan to stay in your backyard shed for a night, then you can freely do it.

Kenneth Alambra
Shed details
Shed roof type
Slanted roof
The illustration of a slant-roof shed with its corresponding dimensions.
Shed width (W)
Shed length (L)
Wall height (H)
Roof rise (R)
Overhang (O)
Rafter length (S)
Output areas
Floor area
Wall area
Roof area
Cost of materials
Price per area of slab or foundation
Cost of slab or foundation
Price per area of wall
Cost of wall
Price per area of the roofing
Cost of roofing
Total cost of shed
Check out 42 similar construction materials calculators 🏗️
Aluminum weightBalusterBeam load… 39 more
People also viewed…


This asphalt calculator determines the amount of asphalt needed for any asphalt pavement project and explains the basics of asphalt pavement installation.

Car crash force

With this car crash calculator, you can find out how dangerous are car crashes.


Quantum physicist's take on boiling a perfect egg.

Heat loss

Use the heat loss calculator to estimate the power of a heater needed to keep your room at a comfortable temperature.
Omni Calculator
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background