The question "How far away is the coast of Santa Barbara from coast?" is circular—Santa Barbara is on the coast. If you meant distance from Santa Barbara to another coastal point (e.g., Los Angeles, Ventura, Point Conception), please specify the destination.
For reference: Santa Barbara to downtown LA ≈ 95 miles (150 km) via US-101.