The chemical reactions and pathways involving dermatan sulfate, any of a group of glycosaminoglycans with repeats consisting of beta-(1,4)-linked L-iduronyl-beta-(1,3)-N-acetyl-D-galactosamine 4-sulfate units. They are important components of ground.