The commonly used image for scaling from the episode is this one here:

While useful, this image has problems when used for scaling since the camera angle has the E-D set somewhere between it and the Borg cube. Most people have mistakenly used this under the assumption that it provides an accurate scaling when it can only provide a lower limit. The angle also makes things kind of odd since it gives the appearance of the cube being slightly taller than it is wide, which we know from other views of the ship that it is most definitely not. The E-D measures roughly 1.45 inches wide across the saucer section, and the cube ship along the bottom side where the E-D is measures 3.57". That would make for a ratio difference of 2.46 to 1. Given the commonly accepted 470 meter with of the saucer section, the Borg cube would be no less than 1,157 meters to a side.
Fortunately we have other views that give us a good understanding of the distance between the E-D and the Borg cube such as this view here when the Borg start to cut into the E-D's saucer:

This view is much better since the camera angle is looking almost straight down on the E-D and the Borg cube. We know from the previous view that the E-D is not sitting even with the bottom side of the Borg cube, but well above it. However, for the sake of simplicity and to give the lowest possible scaling, I will treat it as if the saucer's leading edge were lined up even with it. The cubeship's bottom side measures 5.44" wide and the E-D's saucer measures 1.18" across the widest point of the ellipse. Dividing 5.44 by 1.18 gives us a ratio of 4.6 to 1, which means that the Borg cube in this image is no less than 2,166 meters long. Almost twice as long as the previous scaling!
This is also well within a kilometer of the official canon 3 km to a side number derived from the 28 cubic kilometers given in dialog from VOY's "Dark Frontier". We can bring the number up considerably, if we measure the saucer against a part of the cube that it's actually lined up with.
There is a third view later in the episode that gives us an even bigger number. This image is from when the E-D away team has beamed back upon discovering the Borg ship is regenerating itself, and ship heads towards the cube and then banks away in an attempt to flee:

The cube is so large that it overfills the picture frame quite considerably. The visible portion of the cube measures 11" across the diagonal, while the E-D is only 1.5" wide for a ratio of 7.24 to 1! Even taking the E-D being at a 3/4 angle, the Borg cube is no less than 2.9 km to a side! And this is only of what we can see of the cube in view of the frame.
However, in order to maintain the lowest averaging of all of the three scaling estimates, I will assume that the third view is the full ship.
So now for the averaging:
Image 1: 1,157 meters
Image 2: 2,166 meters
Image 3: 2,900 meters
---------------------
total: 6,223
6,223 divided by 3 = 2,074.33 meters.
So that's it. Working as hard to keep the numbers as conservative as possible, the Borg cube ship from TNG's "Q Who?" is no less than 2.074 km long to a side.
-Mike
