To get a swim speed equal to your walking speed in DnD 5e, you need use a spell, get a class/subclass feature, get a racial feature, or obtain a magic item. Here are more details on each of those methods:
-
Freedom of Movement. Removes penalties on your movement while underwater.
-
Alter Self. Aquatic Adaptation grants swimming speed equal to your walking speed.
-
Polymorph. Many beasts have a swim speed that meets or exceeds their walking speed.
-
True Polymorph. Same as Polymorph.
-
Shapechange. Many creatures have a swim speed that meets or exceeds their walking speed.
-
Deft Explorer – Roving (Ranger). 6th-level feature that grants a swim speed equal to your walking speed.
-
Gift of the Depths (Warlock). 5th-level Eldritch Invocation that grants swim speed.
-
Storm Soul: Sea (Storm Herald Barbarian). 6th-level feature that grants 30 feet of swimming speed.
-
Gift of the Sea (Fathomless Warlock). 1st-level feature that grants 40 feet of swimming speed.
-
Wild Shape (Druid). At 4th level, Druids can Wild Shape into creatures with a swimming speed.
-
Water Genasi. Swimming speed is equal to walking speed.
-
Lizardfolk. Swimming speed is equal to walking speed.
-
Sea Elf. Swimming speed is equal to walking speed.
-
Triton. Swimming speed is equal to walking speed.
-
Locathah. Swimming speed is equal to walking speed.
-
Simic Hybrid. With the 1st-level Underwater Adaptation feature, Simic Hybrids can gain a swim speed to walking speed.
-
Ring of Swimming. Grants a swimming speed of 40 feet.
-
Cloak of the Manta Ray. Grants a swimming speed of 60 feet.
-
Gloves of Swimming and Climbing. Grants a swimming speed equal to walking speed.
-
Ring of Water Elemental Command. Grants a swimming speed equal to walking speed.
-
Apparatus of the Crab. Technically a vehicle, but it does allow the party to have 30 feet of swim speed.