Here are some pictures of my 87 that had factory bedrails.
I sold the truck so i cant get any measurements but thought these pics might help.
These are the best angles I can come up with from the pictures I have.
Hopefully they can give some frame of reference.
I kept the rails when I sold the truck, ya would think I would have took some measurements for when I put them on my truck.