If your body is producing too few or too many blood cells or their structure appears abnormal, you may need a bone marrow test. Bone marrow, the spongy tissue inside bones, contains stem cells that turn into blood cells. Your doctor will remove a small sample of bone marrow through a needle. The procedure takes about 30 minutes and will cause some soreness.