# pentagon icon

Pentagon. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/pentagon

- Category: Shapes
- Use it for: pentagon
- Tags: pentagon, shape, polygon, five-sided, geometry
- Component name: PentagonIcon
- Added: 2026-10-14

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/pentagon.svg · PNG https://gentleface.com/png/line-round/16/pentagon.png · https://gentleface.com/png/line-round/32/pentagon.png · https://gentleface.com/png/line-round/48/pentagon.png
- line-soft: https://gentleface.com/svg/line-soft/16/pentagon.svg · PNG https://gentleface.com/png/line-soft/16/pentagon.png · https://gentleface.com/png/line-soft/32/pentagon.png · https://gentleface.com/png/line-soft/48/pentagon.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/pentagon.svg · PNG https://gentleface.com/png/line-sharp/16/pentagon.png · https://gentleface.com/png/line-sharp/32/pentagon.png · https://gentleface.com/png/line-sharp/48/pentagon.png
- solid-round: https://gentleface.com/svg/solid-round/16/pentagon.svg · PNG https://gentleface.com/png/solid-round/16/pentagon.png · https://gentleface.com/png/solid-round/32/pentagon.png · https://gentleface.com/png/solid-round/48/pentagon.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/pentagon.svg · PNG https://gentleface.com/png/solid-soft/16/pentagon.png · https://gentleface.com/png/solid-soft/32/pentagon.png · https://gentleface.com/png/solid-soft/48/pentagon.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/pentagon.svg · PNG https://gentleface.com/png/solid-sharp/16/pentagon.png · https://gentleface.com/png/solid-sharp/32/pentagon.png · https://gentleface.com/png/solid-sharp/48/pentagon.png

The SVG of every style: https://gentleface.com/icons/pentagon.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z"/></svg>
```

### React

```tsx
// Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon
import type { SVGProps } from 'react';

export function PentagonIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/pentagon.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon. Takes the text color. */
.icon-pentagon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#pentagon"/></svg>
```

### SwiftUI

```swift
// Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon
import SwiftUI

struct PentagonIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 11.588, y: 13.316))
        p.addCurve(to: CGPoint(x: 11.224, y: 13.811), control1: CGPoint(x: 11.52, y: 13.52), control2: CGPoint(x: 11.399, y: 13.685))
        p.addCurve(to: CGPoint(x: 10.64, y: 14), control1: CGPoint(x: 11.05, y: 13.937), control2: CGPoint(x: 10.855, y: 14))
        p.addLine(to: CGPoint(x: 4.36, y: 14))
        p.addCurve(to: CGPoint(x: 3.776, y: 13.811), control1: CGPoint(x: 4.145, y: 14), control2: CGPoint(x: 3.95, y: 13.937))
        p.addCurve(to: CGPoint(x: 3.412, y: 13.316), control1: CGPoint(x: 3.601, y: 13.685), control2: CGPoint(x: 3.48, y: 13.52))
        p.addLine(to: CGPoint(x: 1.14, y: 6.5))
        p.addCurve(to: CGPoint(x: 1.134, y: 5.886), control1: CGPoint(x: 1.072, y: 6.296), control2: CGPoint(x: 1.07, y: 6.091))
        p.addCurve(to: CGPoint(x: 1.488, y: 5.384), control1: CGPoint(x: 1.198, y: 5.68), control2: CGPoint(x: 1.316, y: 5.513))
        p.addLine(to: CGPoint(x: 6.9, y: 1.325))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.125), control1: CGPoint(x: 7.078, y: 1.192), control2: CGPoint(x: 7.278, y: 1.125))
        p.addCurve(to: CGPoint(x: 8.1, y: 1.325), control1: CGPoint(x: 7.722, y: 1.125), control2: CGPoint(x: 7.922, y: 1.192))
        p.addLine(to: CGPoint(x: 13.512, y: 5.384))
        p.addCurve(to: CGPoint(x: 13.866, y: 5.886), control1: CGPoint(x: 13.684, y: 5.513), control2: CGPoint(x: 13.802, y: 5.68))
        p.addCurve(to: CGPoint(x: 13.86, y: 6.5), control1: CGPoint(x: 13.93, y: 6.091), control2: CGPoint(x: 13.928, y: 6.296))
        p.addLine(to: CGPoint(x: 11.588, y: 13.316))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4.36, y: 13))
        p.addLine(to: CGPoint(x: 10.64, y: 13))
        p.addLine(to: CGPoint(x: 12.912, y: 6.184))
        p.addLine(to: CGPoint(x: 7.5, y: 2.125))
        p.addLine(to: CGPoint(x: 2.088, y: 6.184))
        p.addLine(to: CGPoint(x: 4.36, y: 13))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// PentagonIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val PentagonIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "pentagon", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(PentagonIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_pentagon.xml · Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M11.588 13.316C11.52 13.52 11.399 13.685 11.224 13.811C11.05 13.937 10.855 14 10.64 14L4.36 14C4.145 14 3.95 13.937 3.776 13.811C3.601 13.685 3.48 13.52 3.412 13.316L1.14 6.5C1.072 6.296 1.07 6.091 1.134 5.886C1.198 5.68 1.316 5.513 1.488 5.384L6.9 1.325C7.078 1.192 7.278 1.125 7.5 1.125C7.722 1.125 7.922 1.192 8.1 1.325L13.512 5.384C13.684 5.513 13.802 5.68 13.866 5.886C13.93 6.091 13.928 6.296 13.86 6.5L11.588 13.316ZM4.36 13L10.64 13L12.912 6.184L7.5 2.125L2.088 6.184L4.36 13Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "pentagon" (line-round), MIT. https://gentleface.com/icons/pentagon
import 'package:flutter/widgets.dart';

class PentagonIcon extends StatelessWidget {
  const PentagonIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _PentagonIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _PentagonIconPainter extends CustomPainter {
  _PentagonIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(11.588, 13.316)
      ..cubicTo(11.52, 13.52, 11.399, 13.685, 11.224, 13.811)
      ..cubicTo(11.05, 13.937, 10.855, 14, 10.64, 14)
      ..lineTo(4.36, 14)
      ..cubicTo(4.145, 14, 3.95, 13.937, 3.776, 13.811)
      ..cubicTo(3.601, 13.685, 3.48, 13.52, 3.412, 13.316)
      ..lineTo(1.14, 6.5)
      ..cubicTo(1.072, 6.296, 1.07, 6.091, 1.134, 5.886)
      ..cubicTo(1.198, 5.68, 1.316, 5.513, 1.488, 5.384)
      ..lineTo(6.9, 1.325)
      ..cubicTo(7.078, 1.192, 7.278, 1.125, 7.5, 1.125)
      ..cubicTo(7.722, 1.125, 7.922, 1.192, 8.1, 1.325)
      ..lineTo(13.512, 5.384)
      ..cubicTo(13.684, 5.513, 13.802, 5.68, 13.866, 5.886)
      ..cubicTo(13.93, 6.091, 13.928, 6.296, 13.86, 6.5)
      ..lineTo(11.588, 13.316)
      ..close()
      ..moveTo(4.36, 13)
      ..lineTo(10.64, 13)
      ..lineTo(12.912, 6.184)
      ..lineTo(7.5, 2.125)
      ..lineTo(2.088, 6.184)
      ..lineTo(4.36, 13)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_PentagonIconPainter old) => old.color != color;
}
```
