You can easily replace carpet with hardwood with a little elbow grease. You simply have to strip the carpet and its underlay (glue, strips, staples and nails included) and bring it down to the wooden sub floor. Once you have reached the sub floor, clear off any debris and you are ready to start installing your hardwood floor. Photo Source