Generally, computer software is more expensive than computer hardware. Both can be expensive based on an individual's need. For a corporate organisation, highly technical individuals, designers, game lovers and game developers computer software is much more expensive. For example, a individual buys a laptop that cost $2000 and installs 10 computer softwares and each cost $50.
He/she has spent more money on software. Computer hardware are expensive based on the type of product you choose to buy. Hardware purchase is a long time purchase, you do not change them until you see a need to buy a new one but some computer software are purchased on a yearly or monthly bases. In summary, computer software are costlier than computer hardware.
If you were to average what hardware or software cost, you would likely find that software is far more expensive than hardware. This is because hardware, once developed, is relatively easy to manufacture. Computer hardware doesn't have a ton of moving parts, and generally what is the most expensive is the memory.
Computer software, on the other hand, is a good bit more expensive. This is because the engineers and coding specialists that create it demand a higher salary due to their experience, qualifications, and costs of continuing education.