This depends on your needs and desires because both materials have advantages. Carpet is a good choice for safety purposes and is recommended for family homes because it makes a staircase easier to walk up and reduces the risk of slipping. Wood is generally regarded as more aesthetically pleasing and easier to clean.