Two options that arise could be your wider 24 and your narrower 12 options for spacing.
Shed roof joist size.
Spacing your 2 4 shed rafters at 24 on center limits the width of your roof.
This rafter span calculator is species specific for douglas fir hemlock etc.
The lengths and sizes of joists vary depending on the species and quality of the lumber used.
This is based upon the span of the rafter horizontal span not total rafter length live and dead loads.
2x8s are used frequently for these projects.
As a general rule roofs that have a high human occupancy rate should be framed with rafters every 16 structures such as sheds or barns can be frames with rafters every 24 again make sure to consult local codes.
This is due to the fact that the timber is 5mts long.
If your project had a rafter length of 8 or less a safe and strong method is to use 2x8 framed 16 on center.
To size joists and rafters use the maximum span tables for southern yellow pine.
In many circumstances 16 inches would be your standard spacing for shed floor joist but this is just a rough guideline.
The run for a lean to shed rafter ending into a wall should account for the ridge board nailed into the wall where the tops of the rafters rest into.
2 4 rafters can span up to 7.
The fact that they are 2x4 will mean that the timber will become curved within 2 years from the weight.
Trying to find what size lumber to use.
Rafter and joist span faq.
However the timber sizes you have opted for will prove to be an issue.
For heavy loads 2x4s can span up to 5.
This is the distance between joist centres.
Usually 400 450 or 600mm but any value can be used up to 610mm max usually 400 450 or 600mm but any value can be used up to 610mm max 1 2 timber strength class and joist size.
More roof calculators roof truss calculator.
For light load roofs 24 o c.
Most roof framing is 24 on center and you can still build sheds up to 14 with 2 4 rafters at 24 on center.
Hi there the 47mm x 67mm mini joist hangers are no issue if they are put in an accurate and stable manner.
2 8 s come standard at 1 inch thick.