I am building an A-frame PVC greenhouse. I plan to make the pitch 45 degrees for each side. I have a 10 foot gap across from each side of the wall.

How do I calculator the exact length of each half of the roof? I know there's Pythagoras Theorem (a2 +b2 = c2) but I am unsure how to apply it because I only know "A" and the 45 degree Angle, but not "B" or "C".

Thanks for any help!!

  • Also don’t forget to add for any overhang you might want. – user76730 May 26 '18 at 1:27
  • Thanks, we don't have any overhang in this case but good to know. – TetraDev May 29 '18 at 15:51
  • Having watched this video, all I can say is, PVC cement gives a VERY short working time, so I do not know how they managed to assemble that structure with all the connectors aligned perfectly like that. I would not trust myself to get that right without a jig. – Harper - Reinstate Monica May 29 '18 at 16:27

If it's a 45 degree angle, B=A.

Or you can set any value you please for roof height. You don't need to know any trig, nobody cares what the angle is. People who do roofs work in rise/run ratio, not angles.

The Pythagorean Theorem requires one corner be a regular square corner (90 degrees. Fit it to your roof one of two ways:

  • if you are committed to 45 degree angles on the roof, the apex angle will be 90 degrees. Roof angle is 100% or 12" per foot. You can put the square corner up there, and just make A and B equal as they are the sides of the roof. A2+A2=C2. You know C, the width of the building.
  • If you want a roof of any height, then drop an imaginary line straight down from the apex, and the 90 degrees is where it meets the ground. Now A is 1/2 the width of the building, B is the height of the roof. You can take it from there. Roof slope is B/A, stated as % or inches per foot. For instance 4" per foot or a 33% grade.

enter image description here

Since in comments you say you are stuck with 45 degree angles*, here's how you use diagram A to do that. You've already established your bottom edge is 10' so c=10'. That is a stocking size, and let's say your PVC pipe does not have a flare on the end that you'd have to cut off (otherwise you'd need to recalc). a and b are the same since your roof is symmetrical, so you plug into Pythagoras's Theorom (with a few substitutions):

a2+a2=102 -------------- this rewrites easily into

2 a2 = 100 --------------- and from here it's straight up solving.

a2 = 50

a = sqrt(50)

a = 7.071'

7.071' = 7 feet + 7/8 inches

That 7/8 inches will getcha. Remember these measurements are from actual corners, so when choosing PVC length you need to measure the connectors to see how far the pipe stops short of the actual corner. PVC elbows are not made for building structures, so the manufacturers don't think about these things.

If you want to get good at that, talk to the people doing geodesic domes. They have to get the numbers right for the structure to be stable.

  • 1
    For 45 degrees, it will be .7 times the distance between the side walls. – April's Squeeze May 26 '18 at 0:51
  • The first image isn't too helpful because the OP wants to know what the image shows as "a"; showing that "b" is the same doesn't really answer that. It would be better to reference everything to the second image, because the OP's "a" is likely what that one shows as either "a" or "b". – fixer1234 May 26 '18 at 20:45
  • @fixer1234 This is a frame challenge answer. I'm challenging OP's assumptions about his use of A. He's using Pythagoreas' theorom correctly (with C always the long leg), but he's plugging in his known 10' dimension into the wrong place. My goal is to clear that up. – Harper - Reinstate Monica May 26 '18 at 21:55
  • 1
    @TetraDev He's wrong. The multiplier is 1/sqrt(2) which is 0.7071. His numbers will put you shy by about an inch, enough to not fit in the socket. That would be murderously frustrating after you cut 30 of them and have to send all the material to scrap. Also, you asked how to calculate it which is why you got an answer of how to calculate it. – Harper - Reinstate Monica May 29 '18 at 16:00
  • 1
    @harper fortunately the pvc is somewhat flexible so I was able to get it working with a few inches of variance, but for something rigid I would need it exact. Thanks for that formula to get 0.7071 – TetraDev Jun 1 '18 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.